1. 問題描述
在運行Nutch的時候會出現如下異常:
Exception in thread “main” java.io.IOException: Job failed!
2. 問題原因
nutch-default.xml中的plugin.folders的配置問題。
3. 問題解決
在配置plugin目錄的時候,一定要使用絕對路徑。
<property>
<name>plugin.folders</name>
<value>C:/NutchWorkPlat/nutch/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>
如下: