【问题标题】:Nutch message "No IndexWriters activated" while loading to solr加载到 solr 时 Nutch 消息“未激活 IndexWriters”
【发布时间】:2013-07-13 01:00:00
【问题描述】:

我已经按照 nutch 教程 http://wiki.apache.org/nutch/NutchTutorial 运行 nutch 爬虫,但是当我开始将它加载到 solr 时,我收到了这条消息,即“没有激活 IndexWriters - 检查您的配置

bin/nutch solrindex http://localhost:8983/solr crawl/crawldb/ -dir crawl/segments/
Indexer: starting at 2013-07-15 08:09:13
Indexer: deleting gone documents: false
Indexer: URL filtering: false
Indexer: URL normalizing: false
**No IndexWriters activated - check your configuration**

Indexer: finished at 2013-07-15 08:09:21, elapsed: 00:00:07

【问题讨论】:

    标签: solr nutch


    【解决方案1】:

    确保包含插件indexer-solr。转到文件:conf/nutch-site.xml 并在属性plugin.includes 中添加插件,例如:

    protocol-http|urlfilter-regex|parse-(html|tika)|index-(basic|anchor)|indexer-solr|scoring-opic|urlnormalizer-(pass|regex|basic)

    添加插件后,No IndexWriters activated - check your configuration 警告在我的情况下消失了。

    查看这个帖子:http://lucene.472066.n3.nabble.com/a-plugin-extending-IndexWriter-td4074353.html

    【讨论】:

    • 派对迟到了,但对于像我这样遇到这种情况的其他人,请确保在 runtime/local/conf/ 文件夹中更新您的 nutch-site.xml,而不仅仅是在 conf/ 中。
    【解决方案2】:

    @Tryskele + @Scott101 为我工作:

    将 plugin.includes 属性添加到 /conf/nutch-site.xml 和 runtime/local/conf/nutch-site.xml 文件中:

    <property>
      <name>plugin.includes</name>
      <value>protocol-httpclient|urlfilter-regex|index-(basic|more)|query-(basic|site|url|lang)|indexer-solr|nutch-extensionpoints|protocol-httpclient|urlfilter-regex|parse-(text|html|msexcel|msword|mspowerpoint|pdf)|summary-basic|scoring-opic|urlnormalizer-(pass|regex|basic)protocol-http|urlfilter-regex|parse-(html|tika|metatags)|index-(basic|anchor|more|metadata)</value>
    </property>
    

    【讨论】:

      【解决方案3】:

      不知道这是否仍然是一个问题,但我遇到了这个问题,然后意识到我的src/plugin/build.xml 缺少indexer-solr 插件。添加以下内容然后重新编译 nutch 为我修复了它:

      &lt;ant dir="indexer-solr" target="deploy"/&gt;

      【讨论】:

        【解决方案4】:

        在 conf/nutch-site.xml 中为插件添加以下属性

        <property>
        <name>plugin.includes</name>
        <value>protocol-httpclient|urlfilter-regex|index-(basic|more)|query-(basic|site|url|lang)|indexer-solr|nutch-extensionpoints|protocol-httpclient|urlfilter-regex|parse-(text|html|msexcel|msword|mspowerpoint|pdf)|summary-basic|scoring-opic|urlnormalizer-(pass|regex|basic)protocol-http|urlfilter-regex|parse-(html|tika|metatags)|index-(basic|anchor|more|metadata)</value>
        </property>
        

        如果它解决了你的问题,请告诉我。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2012-03-21
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2021-05-11
          • 1970-01-01
          相关资源
          最近更新 更多