Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds

Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds

New Contributor

We enabled kerberos on the cluster, have enabled HA for nimbus and created the kerberos ticket on the commandline in the edgenode with appropriate rights in ranger for the principal. when running a sample topology of wordcount in this manner storm jar myStorm-0.0.1-SNAPSHOT.jar com.storm.test.myStorm.helloStorm /home/BBattin/storm_test/input.txt

we are getting the following error

Exception in thread "main" java.lang.RuntimeException: Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds at backtype.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:90) at backtype.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:225) at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:271) at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:157) at com.storm.test.myStorm.helloStorm.main(helloStorm.java:24)

please help

3 REPLIES 3
Highlighted

Re: Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds

Mentor
@brahmasree b

please review information in this doc

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.3/bk_secure-storm-ambari/content/ch_secure-st...

Add the following settings to the /etc/storm/conf/storm.yaml configuration file:

nimbus.seeds: <nimbus-host-array>
nimbus.thrift.port: 6667
java.security.auth.login.config: "/etc/storm/conf/client_jaas.conf"
storm.thrift.transport: "backtype.storm.security.auth.kerberos.KerberosSaslTransportPlugin"

where <nimbus-host-array> is an array of hostnames running Nimbus. (The value should come from /etc/storm/conf/storm.yaml.) For example:

nimbus.seeds: ["c6401.ambari.apache.org", "c6402.ambari.apache.org"]

Highlighted

Re: Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds

Expert Contributor

@Artem Ervits, this solution still give me the same issue. Also I have these changes on the edge node. That is correct right?

@brahmasree b did you find solution to this question? if so can you please post

Highlighted

Re: Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds

Expert Contributor
@brahmasree b

Connect to zookeeper and delete the znode dir related to storm service and restart both "zookeeper" and "storm" service.

/usr/hdp/current/zookeeper-server/bin/zkCli.sh -server <hostname>:2181

[zk: <hostname>:2181(CONNECTED) 0]ls /

[zk: <hostname>:2181(CONNECTED) 0]rmr /storm
Don't have an account?
Coming from Hortonworks? Activate your account here