IBM Support

Monitoring adaptor configuration against Hadoop DataNode for single node clusters

Technote (troubleshooting)


Missing host name/IP in Monitoring adaptor configuration for Hadoop DataNode for single node clusters


When installing a single node cluster using all of the default installation options, the monitoring adaptor for Hadoop DataNode is added without the host/IP information.


The default Hadoop DataNode installation option for the cluster install type is "Install on nodes other than NameNode" regardless of the number of machines in the cluster. For a single node, that results in zero nodes qualified as available for installing Hadoop DataNode because the NameNode is also installed on the server. The Hadoop DataNode gets installed because the Hadoop installation code uses its own logic to figure this out. However, monitoring does not have the same logic, and therefore is unable to obtain the correct host name/IP for the Hadoop DataNode

Resolving the problem

Manually update the monitoring adaptor configuration against Hadoop DataNode:

  1. Using Monitoring REST API, start monitoring using the Enterprise Console.
  2. In a web browser, open http://host:monitoring_agent_port/rest/v1/adaptor, where monitoring_agent_port is what the user defines on the Installer UI. The default is 9090. Examine the XML file returned from the URL for the adaptor ID of the wrong adaptor. The XML section for HadoopDataNode adaptor has dataType attribute set as "DatanodeProcessor".
  3. Using a rest client, issue HTTP DELETE against http://host:monitoring_agent_port/rest/v1/adaptor/adaptor_id, where adaptor_id is what the user figures out in step 2.
  4. Using a rest client, issue HTTP POST against http://host:monitoring_agent_port/rest/v1/adaptor
    1. Set request header to have Content-Type as application/json;charset=UTF-8
    2. Set request body as:
      {Offset=0, AdaptorClass=org.apache.hadoop.chukwa.datacollection.adaptor.JMXAdaptor, DataType=DatanodeProcessor, AdaptorParams=<host_name> 8007 60 Hadoop:*}, where <host_name> is the actual hostname of the single node cluster

Document information

More support for: IBM BigInsights

Software version: 2.0.0

Operating system(s): Linux

Software edition: Enterprise Edition

Reference #: 1618529

Modified date: 31 March 2014

Translate this page: