我正在学习 Apache Nutch 教程。
我的conf/nutch-site.xml配置如下:
<property>
<name>http.agent.name</name>
<value>Nutch Spidah</value>
</property>
<configuration>
</configuration>
我收到此错误:
[ fatal error ] nutch-site.xml:11:2:文档中根元素后面的标记必须格式正确。
我知道我遗漏了一些明显的东西。任何帮助表示赞赏。谢谢!
最佳答案
您的属性必须出现在配置标记内:
<configuration>
<property>
<name>http.agent.name</name>
<value>Nutch Spidah</value>
</property>
</configuration>
查看此example .
关于java - "Fatal Error"以下 nutch 教程 "markup in the document following the root must be well formed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13020015/