java.io.IOException: Job failed! 问题已经解决

报 Exception in thread "main" java.io.IOException: Job failed!

查看到的主要 问题是nutch-default.xml中的plugin.folders的配置问题


plugin.folders
./src/plugin
Directories where nutch plugins are located. Each
element may be a relative or absolute path. If absolute, it is used
as is. If relative, it is searched for on the classpath.


上一篇博客中也强调了这个地方。
这里强调的是如果你执行nutch命令的位置不是在工程目录下。举一个场景:
目前所在目录是linux的根目录下
#cd /
要执行的nutch在/home/workspace/Nutch14项目下
那么在根目录下执行/home/workspace/Nutch14/runtime/local/bin/nutch脚本
则会出现Job failed!失败的情况
如果是这种情况,要改成:

plugin.folders
/home/workspace/Nutch14/runtime/local/plugins
Directories where nutch plugins are located. Each
element may be a relative or absolute path. If absolute, it is used
as is. If relative, it is searched for on the classpath.


总结就是一定要找到plugin.folders的位置
绝对地址有时还不错!

你可能感兴趣的:(经典代码)