04-27-2017 12:37 AM
Below is the error while adding zookeeper to one of the node.
+ exec /usr/java/jdk1.7.0_67-cloudera/bin/java -cp '/run/cloudera-scm-agent/process/375-zookeeper-ser
Error: Exception thrown by the agent : java.lang.NullPointerException
04-27-2017 09:07 AM
Since the stderr.log shows that the supervisor already tried starting Zookeeper and the agent/supervisor is written in python, the exception must be coming from Zookeeper itself. I'd recommend checking the zookeeper logs on the host where it failed to start. Also you might check "stdout.log" for the process as it sometimes contains output including role exceptions.
04-27-2017 09:12 AM
Oh, and we have had this sort of thing happen if the port specified in "com.sun.management.jmxremote.rmi.port=9010" is already in use. You may want to try "netstat -nap|grep 9010" to see if another process has taken that port.
04-27-2017 09:16 AM
One more lastly:
"Exception thrown by the agent" is not from Cloudera's Agent; rather it is the RMI Agent I believe and a web search confirms that the error you see is when the RMI port is taken