nutch java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence

2) 修改配置文件指定索引库.( WEB-INFclasses下的nutch-site.xml):

     <?xml version="1.0"?>
  <?xml-stylesheet type="text/xsl" href="nutch-conf.xsl"?>

   <nutch-conf>
   <property>
    <name>searcher.dir</name>
    <value>G:/nutch-0.9/crawled</value>
   </property>
   </nutch-conf>

注意,当复制上述配置文件时,如果出现下列错误,是因为复制文件时带有空格或编码格式,重敲一遍即可: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence