2
votes

I'm following the tutorial for Apache Nutch.

I have the conf/nutch-site.xml configured like so:

<property>
 <name>http.agent.name</name>
 <value>Nutch Spidah</value>
</property>

<configuration>

</configuration>

I'm getting this error:

[Fatal Error] nutch-site.xml:11:2: The markup in the document following the root element must be well-formed.

I know I'm missing something obvious. Any help is appreciated. Thanks!

2

2 Answers

4
votes

Your properties must appear inside the configuration tags:

<configuration>
   <property>
      <name>http.agent.name</name>
      <value>Nutch Spidah</value>
   </property>
</configuration>

See this example.

0
votes

Try putting the configuration tags around the property tags