Vibhay,
             You are using master branch which is under development to
             move to Java. This might be very unstable. I suggest you to
             use 1.x-branch in general as its getting ready for storm
             1.0 release. You don't need to add anything to storm.yaml ,
             defaults should be fine for a single node cluster.

1. git checkout 1.x-branch
2. mvn -DskipTests clean install
3. cd storm-dist/binary
4. mvn clean package
5. cd target
6. find and unzip apache-storm-1.0.0-SNAPSHOT
7. run required services
  bin/storm dev-zookeeper, bin/storm nimbus, bin/storm supervisor,
  bin/storm ui
8. ./bin/storm jar
examples/storm-starter/storm-starter-topologies-1.0.0-SNAPSHOT.jar
org.apache.storm.starter.WordCountTopology wordcount

For bit more details you can refer here
http://blog.harsha.io/setting-up-a-single-node-apache-storm-cluster/
its on a older version of storm but relevant for the latest as well.

-Harsha




On Sun, Mar 13, 2016, at 01:43 PM, vibha goyal wrote:
> Hi,
> 
> I am grad student, and I am working on Storm as a part of my course
> project.
> 
> I have cloned the source code from git, and followed the instructions.
> 
> I am using branch : 0.10.0
> 
> After "mvn package", when I copy the apache-storm-<version>.tar.gz in my
> home,
> untar it and try to run nimbus.
> 
> I get error:
> 
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.apache.storm.utils.ConfigUtils.readStormConfigImpl(ConfigUtils.java:138)
> at
> org.apache.storm.utils.ConfigUtils.readStormConfig(ConfigUtils.java:134)
> at org.apache.storm.command.ConfigValue.main(ConfigValue.java:27)
> Caused by: java.lang.RuntimeException: java.io.IOException: Found
> multiple
> storm.yaml resources. You're probably bundling the Storm jars with your
> topology jar.
> [jar:file:/home/vgoyal5/apache-storm-2.0.0-SNAPSHOT/lib/storm-core-2.0.0-SNAPSHOT.jar!/storm.yaml,
> file:/home/vgoyal5/apache-storm-2.0.0-SNAPSHOT/conf/storm.yaml]
> at org.apache.storm.utils.Utils.findAndReadConfigFile(Utils.java:372)
> at org.apache.storm.utils.Utils.readStormConfig(Utils.java:456)
> at org.apache.storm.utils.Utils.<clinit>(Utils.java:173)
> ... 3 more
> 
> 
> I deleted the "/home/vgoyal5/apache-storm-2.0.0-SNAPSHOT/conf/storm.yaml"
> file and again tried.
> 
> This time I was able to connect the nimbus and supervisors and could see
> the connections in UI.
> 
> As soon as I tried to submit the topology with the command:
> 
> storm jar examples/storm-starter/target/storm-starter-2.0.0-SNAPSHOT.jar
> org.apache.storm.starter.ExclamationTopology exclamation-topology
> 
> I got error:
> 
> org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find
> leader
> nimbus from seed hosts [sp16-cs525-g05-01.cs.illinois.edu]. Did you
> specify
> a valid list of nimbus hosts for config nimbus.seeds?
> 
> First ,I am not able to resolve this error,
> 
> and second, I cannot make changes in storm.yaml as I deleted the
> conf/storm.yaml
> 
> I am a beginner in Storm. I have been trying this for a day now. Any help
> would be appreciated!!
> 
> 
> 
> Thanks!
> 
> Vibha Goyal

Reply via email to