查看到的主要 问题是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 isused
as is. If relative, it is searched for on theclasspath.</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 isused
as is. If relative, it is searched for on theclasspath.</description>
</property>
总结就是一定要找到plugin.folders的位置
绝对地址有时还不错!