YarnClientImpl failed in state STOPPED; cause: java.lang.NullPointerException

Environment

DM: 6.1, OS: -, DIST: -, COM: Autoconfigure Cluster

Problem

While configuring Datameer and the Hadoop cluster settings, Autoconfigure Cluster is choosen. After pointing to the right path of the cluster conf folder and saving the setting, the application freezes. Investigating the application log file (conductor.log) shows the following error message:

INFO [<timestamp>] [qtp1323496820-84] (AbstractService.java:272) - Service org.apache.hadoop.yarn.client.api.impl.YarnClientImpl failed in state STOPPED; cause: java.lang.NullPointerException
java.lang.NullPointerException
	at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.serviceStop(YarnClientImpl.java:197)
	at org.apache.hadoop.service.AbstractService.stop(AbstractService.java:221)
	at org.apache.hadoop.service.AbstractService.close(AbstractService.java:250)
...

Cause

This problem occurs if the YARN Timeline Server is enabled. The property in yarn-site.xml is:

    <property>
      <name>yarn.timeline-service.enabled</name>
      <value>true</value>
    </property>

Workaround

  1. Disable the timeline service in the property file by setting:
        <property>
          <name>yarn.timeline-service.enabled</name>
          <value>false</value>
        </property>
  2. Or set the custom property:
    yarn.timeline-service.enabled=false

Solution

This problem will be fixed in a later release.

Further Information

See also distribution specific documentation from Hortonworks or Cloudera.