Hi,
I wanted to run my own java code in hadoop. The following are the commands
that I executed and errors occurred.
mkdir temp
javac -Xlint -classpath hadoop-0.16.0-core.jar -d temp
GetFeatures.java (GetFeatures.java is the code)
jar -cvf temp.jar temp
bin/hadoop jar temp.jar GetFeatures input/input.txt out
ERROR:
Exception in thread "main" java.lang.ClassNotFoundException: GetFeatures
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
can you interpret the possible reason for the error?
Thank you.