Java – compile Hadoop 2.2 0 work?
•
Java
It seems that all the examples are built considering the old version
How to compile my java program on Ubuntu so that it will reference hadoop-2.2 0 library?
What jar files should I include?
What are the orders? Isn't it –
javac -classpath libraries wordcount.java
thank you.
Solution
The simplest solution for Linux machines is:
javac -classpath `yarn classpath` -d . WordCount.java
or
export CLASSPATH=`yarn classpath` javac -classpath $CLASSPATH -d . WordCount.java
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码