Please explain the options in the compilation command.
javac -classpath ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar -d wordcount_classes WordCount.java
(why they are needed) on http://hadoop.apache.org/docs/r0.20.2/mapred_tutorial.html ?
Please explain the options in the compilation command.
javac -classpath ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar -d wordcount_classes WordCount.java
(why they are needed) on http://hadoop.apache.org/docs/r0.20.2/mapred_tutorial.html ?
@ ivan31 you are not tired?
I tell in order what happens. It says something like this:
Take the Java compiler (javac), run it to compile the WordCount.java class and, allow external links using the
${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar
(it is assumed that theHADOOP_HOME
andHADOOP_VERSION
environment variables are defined. Compiled Object codes (WordCount.class
file) throw in the directorywordcount_classes
import org.apache.hadoop.*
- these are external links. do not disgrace - take any java tutorial and read - BarmaleySource: https://ru.stackoverflow.com/questions/145830/
All Articles