error:No agents listed in 'http.agent.name' property 处理方式

来源:互联网 发布:vm虚拟机mac开3d 编辑:程序博客网 时间:2024/04/28 08:57

错误原因

     conf/nutch-default.xml中的http代理的值为空。

使用vim 打开conf/nutch-default.xml 找到


<property> 

    <name>http.agent.name</name>

    <value></value>


</property> 


随便在<value></value>中加一个值

比如

<property> 

    <name>http.agent.name</name>

    <value>test</value>


</property> 


问题解决!






原创粉丝点击