Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Could not find leader nimbus from seed hosts [sandbox.hortonworks.com]

avatar
New Member

I'd appreciate any help in resolving the exception I'm getting while trying to run my first Storm topology based on a very simple Word Count example I found on internet. I'm running following command:

storm jar StormWordCounter-0.0.1-SNAPSHOT.jar demo.storm.WordStormProd MySampleFile.txt

Please see my attached code wordstormprod.txt

The detailed exception as following:

11033 [main] WARN o.a.s.u.NimbusClient - Ignoring exception while trying to get leader nimbus info from sandbox.hortonworks.com. will retry with a different seed host.

java.lang.RuntimeException: org.apache.storm.thrift.transport.TTransportException: java.net.ConnectException: Connection refused

at org.apache.storm.security.auth.TBackoffConnect.retryNext(TBackoffConnect.java:64) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.security.auth.TBackoffConnect.doConnectWithRetry(TBackoffConnect.java:56) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.security.auth.ThriftClient.reconnect(ThriftClient.java:99) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.security.auth.ThriftClient.<init>(ThriftClient.java:69) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.utils.NimbusClient.<init>(NimbusClient.java:105) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:65) [storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.StormSubmitter.topologyNameExists(StormSubmitter.java:370) [storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:233) [storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:310) [storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:157) [storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at demo.storm.WordStormProd.main(WordStormProd.java:25) [e02505eca3e011e682160242ac110002.jar:?]

Caused by: org.apache.storm.thrift.transport.TTransportException: java.net.ConnectException: Connection refused

at org.apache.storm.thrift.transport.TSocket.open(TSocket.java:226) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.thrift.transport.TFramedTransport.open(TFramedTransport.java:81) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.security.auth.SimpleTransportPlugin.connect(SimpleTransportPlugin.java:103) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.security.auth.TBackoffConnect.doConnectWithRetry(TBackoffConnect.java:53) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

... 9 more

Caused by: java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.7.0_111]

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[?:1.7.0_111]

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[?:1.7.0_111]

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[?:1.7.0_111]

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.7.0_111]

at java.net.Socket.connect(Socket.java:579) ~[?:1.7.0_111]

at org.apache.storm.thrift.transport.TSocket.open(TSocket.java:221) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.thrift.transport.TFramedTransport.open(TFramedTransport.java:81) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.security.auth.SimpleTransportPlugin.connect(SimpleTransportPlugin.java:103) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

at org.apache.storm.security.auth.TBackoffConnect.doConnectWithRetry(TBackoffConnect.java:53) ~[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]

... 9 more

Exception in thread "main" java.lang.RuntimeException: org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [sandbox.hortonworks.com]. Did you specify a valid list of nimbus hosts for config nimbus.seeds?

at org.apache.storm.StormSubmitter.topologyNameExists(StormSubmitter.java:380)

at org.apache.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:233)

at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:310)

at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:157)

at demo.storm.WordStormProd.main(WordStormProd.java:25)

Caused by: org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [sandbox.hortonworks.com]. Did you specify a valid list of nimbus hosts for config nimbus.seeds?

at org.apache.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:89)

at org.apache.storm.StormSubmitter.topologyNameExists(StormSubmitter.java:370)

... 4 more

1 ACCEPTED SOLUTION

avatar
Super Guru

@Anand Verma

Exception in thread "main" java.lang.RuntimeException: org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [sandbox.hortonworks.com]. Did you specify a valid list of nimbus hosts for config nimbus.seeds?

Check this: https://community.hortonworks.com/articles/8844/solutions-for-storm-nimbus-failure.html

View solution in original post

2 REPLIES 2

avatar
Super Guru

did you check the availability of Nimbus, is it up?

avatar
Super Guru

@Anand Verma

Exception in thread "main" java.lang.RuntimeException: org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [sandbox.hortonworks.com]. Did you specify a valid list of nimbus hosts for config nimbus.seeds?

Check this: https://community.hortonworks.com/articles/8844/solutions-for-storm-nimbus-failure.html