I'm trying to figure out how to set a class path that references HDFS? I can not find any links.
java -cp "how to reference to HDFS?" com.MyProgram
If I cannot reference the hadoop file system, then I need to copy all the links to third-party libraries / baths somewhere under $ HADOOP_HOME on each hadoop machine ... but I want to avoid this by placing the files in the hadoop file system. Is it possible?
An example hasoop command line for starting a program (my expectation seems to be, maybe I'm wrong):
hadoop jar $HADOOP_HOME/contrib/streaming/hadoop-streaming-1.0.3.jar -input inputfileDir -output outputfileDir -mapper /home/nanshi/myprog.java -reducer NONE -file /home/nanshi/myprog.java
However, on the command line above, how to add a java classpath? like -cp "/home/nanshi/wiki/Lucene/lib/lucene-core-3.6.0.jar:/home/nanshi/Lucene/bin"
source
share