2011-12-06 49 views
1

整合我一直在試圖建立Nutch的使用Solr,但收到以下異常Nutch的1.4 Solr的3.5 http.agent.name財產

提取程序:未在「http.agent.name」屬性中列出的代理。

線程「main」中的異常java.lang.IllegalArgumentException:Fetcher:沒有在http.agent.name屬性中列出的代理。

回答

3

由於每Nutch的教程,你應該在以下文件中添加代理名稱: ./conf/nutch-default.xml 例如 六/opt/nutch/conf/nutch-default.xml 變化: http.agent.name到:用於HTTP的http.agent.url和http.agent.email

<name>http.agent.name</name> 
    <value>nutch</value> 

同時設定值.robots.agents - 確保第一個條目與您的http.agent.name匹配,即 http.robots.agents nutch,*