zl程序教程

您现在的位置是:首页 >  其他

当前栏目

The type org.apache.commons.cli.Options cannot be resolved. It is indirectly referenced from required .class files

ITApache The is Cannot from be type
2023-09-27 14:25:09 时间

在搭建好Hadoop Eclipse开发环境后,编写map-reduce,遇到如下的问题:

image

从字面上可以看出,工程缺少org.apache.commons.cli.Options,这个包被间接的被其他包使用,根据经验推断,这个应该是缺少$HADOOP_HOMT/lib下的某一个包,通过不断的尝试,发现是缺少了commons-cli-1.2.jar包,

image

通过Java Build Path设置后,恢复正常。