hadoop in action第一个例子编译错误处理

用书上的命令行编译的时候,出现以下错误:

playground/src/WordCount.java:53: cannot access org.apache.commons.cli.Options

将commons-cli-1.2.jar加入到classpath路径中就可以了:

javac -classpath ${HADOOP_HOME}/hadoop-0.20.2-core.jar:${HADOOP_HOME}/lib/commons-cli-1.2.jar -d playground/classes/ playground/src/WordCount.java


你可能感兴趣的:(hadoop,Access,action)