Run java file (Storm helloWorld example) in linux command line including libraries -
i trying run apache storm in local mode in machine.
i managed install , run storm follwoing:
1- install apachee zookeeper
2- install storm
3- configure storm (config.yaml)
4- start storm master , worker nodes (nimbus , supervisor)
5- start storm ui
now issue run helloworld example
i have using tutorial in link below
http://wpcertification.blogspot.com/2014/02/helloworld-apache-storm-word-counter.html
it has 4 java files
1- main: hellostorm.java
2- linereaderspout
3- wordspitterbolt
4- wordcounterbolt
now when try run main file in command line (linux-based system), following error:
error: package com.spnotes.storm.bolts not exist @ import com.spnotes.storm.bolts.wordcounterbolt;
my guess didn't specify classpath correctly include location of storm, did following
javac -classpath ~/public/apache-storm-0.9.4/lib/ hellostorm.java
however still facting same problem. suggestions ?
packages correspond directories if have
import com.spnotes.storm.bolts.wordcounterbolt
in code, need have com/spnotes/storm/bolts/wordcounterbolt.java
file during compilation.
at runtime, java expect com/spnotes/storm/bolts/wordcounterbolt.class
file.
Comments
Post a Comment