hadoop 2.2.0編譯WordCount
阿新 • • 發佈:2019-01-02
javac -classpath common/hadoop-common-2.2.0.jar:common/lib/commons-cli-1.2.jar:common/lib/hadoop-annotations-2.2.0.jar:mapreduce/hadoop-mapreduce-client-core-2.2.0.jar -d playground/classes/ playground/src/org/apache/hadoop/examples/WordCount.java
hadoop 1.0.1執行:
java -classpath /opt/hadoop-1.0.1/hadoop-core-1.0.1.jar:.:/opt/hadoop-1.0.1/lib/commons-logging-1.1.1.jar:/opt/hadoop-1.0.1/lib/commons-cli-1.2.jar:/opt/hadoop-1.0.1/lib/commons-configuration-1.6.jar:/opt/hadoop-1.0.1/lib/commons-lang-2.4.jar:/opt/hadoop-1.0.1/lib/jackson-mapper-asl-1.8.8.jar:/opt/hadoop-1.0.1/lib/jackson-core-asl-1.8.8.jar:/opt/hadoop-1.0.1/lib/commons-httpclient-3.0.1.jar
Score_Process /mapreduce/wordcount/input /mapreduce/wordcount/output