Indexing 1000/1000 documents
Deleting 0 documents
Indexing 1000/1000 documents
Deleting 0 documents
Indexing job did not succeed, job status:FAILED, reason: NA
Indexer: java.lang.RuntimeException: Indexing job did not succeed, job status:FAILED, reason: NA
at org.apache.nutch.indexer.IndexingJob.index(IndexingJob.java:150)
at org.apache.nutch.indexer.IndexingJob.run(IndexingJob.java:231)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.nutch.indexer.IndexingJob.main(IndexingJob.java:240)
Error running:
/Users/devharsh/Downloads/nutch/bin/nutch index -Dsolr.server.url=http://localhost:8983/solr/nutch Crawl/crawldb -linkdb Crawl/linkdb Crawl/segments/20200331192240
Failed with exit value 255.
答案1
没关系..我发现 Solr 中的核心“nutch”没有映射,所以我从 Solr > 核心管理创建了一个名为“nutch”的新核心(http://localhost:8983/solr/#/)(创建了名为 nutch 的新文件夹并复制了模式文件)并且它起作用了..