java - "Fatal Error"以下 nutch 教程 "markup in the document following the root must be well formed"

标签 java xml nutch

我正在学习 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/

相关文章:

Android Layer-List Drawable 有两个项目未正确绘制且大小错误

elasticsearch - 我应该在 Elasticsearch 中使用 Nutch 1x 还是 2x

java - 这是什么意思以及如何修复 SonarQube Java 问题 "Cycles between packages should be removed"(鱿鱼 :CycleBetweenPackages)

java - Restful 中返回类型 xml 或 json

Java:if-return-if-return vs if-return-elseif-return

java - 解析 XML 不会显示所有项目

hadoop - Apache Nutch worker 实例的最大数量

.net - Java Lucene 与 .Net 集成

java - Android Studio 不会在 "Run"上构建 Java 项目;需要手动构建

java - 将控制从 JFrame 转移回调用类