hadoop wordcount
有package层次时编译命令~$javac -classpath ~/hadoop-1.0.3/hadoop-core-1.0.3.jar~/used_files/WordCount.java -d ~/used_files/报错:WordCount.java:53:error:cannot access Options String[]otherArgs = new GenericOptionsParser(conf,args).getRemainingArgs();^
> 更改编译命令:
~$javac -classpathhadoop-1.0.3/hadoop-core-1.0.3.jar:hadoop-1.0.3/lib/commons-cli-1.2.jar-d ~/used_files WordCount.java
在used_files文件夹下出现org文件夹,里面包含class文件。
打包命令
页:
[1]