`
Sweblish
  • 浏览: 101004 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

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

 
阅读更多
报 Exception in thread "main" java.io.IOException: Job failed!

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

<property>
  <name>plugin.folders</name>
  <value>./src/plugin</value>
  <description>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.</description>
</property>
上一篇博客中也强调了这个地方。
这里强调的是如果你执行nutch命令的位置不是在工程目录下。举一个场景:
目前所在目录是linux的根目录下
#cd /
要执行的nutch在/home/workspace/Nutch14项目下
那么在根目录下执行/home/workspace/Nutch14/runtime/local/bin/nutch脚本
则会出现Job failed!失败的情况
如果是这种情况,要改成:
<property>
  <name>plugin.folders</name>
  <value>/home/workspace/Nutch14/runtime/local/plugins</value>
  <description>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.</description>
</property>
总结就是一定要找到plugin.folders的位置
绝对地址有时还不错!
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics