我刚从示例目录中复制了WordCount.java
源代码,我试图编译它。但我得到我还没有在代码改变任何东西的错误用CDH4伪分布式模式在WordCount.java中编译错误
WordCount.java:61: error: cannot access Options
String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
^
class file for org.apache.commons.cli.Options not found
1 error
。
您是如何编制的?你显然需要在你的班级路径 – unekwu
中包含cli库,那么我们如何使用命令行 –