【问题标题】:Error when creating a core by specifying a config directory通过指定配置目录创建核心时出错
【发布时间】:2015-10-07 22:20:21
【问题描述】:

我正在尝试使用以下命令在 SolrCloud 中创建核心:

sudo /opt/solr/bin/solr create -c Collection1 -d /home/callmekatootie/Desktop/conf

但是,我收到以下错误:

Connecting to ZooKeeper at localhost:9983 ...
Uploading /home/callmekatootie/Desktop/vm/configs for config Collection1 
to ZooKeeper at localhost:9983

Creating new collection 'Collection1' using command:
http://localhost:8983/solr/admin/collections?action=CREATE&name=Collection1
&numShards=1&replicationFactor=1&maxShardsPerNode=1
&collection.configName=Collection1


ERROR: Failed to create collection 'Collection1' due to: org.apache.solr.client.
solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at 
http://127.0.1.1:8983/solr: Error CREATEing SolrCore 'Collection1_shard1_replica1':
Unable to create core [Collection1_shard1_replica1]
Caused by: solr.SynonymExpandingExtendedDismaxQParserPlugin

SynonymExpandingExtendedDismaxQParserPlugin 是什么,为什么会出现上述错误

【问题讨论】:

    标签: solr ubuntu-14.04 apache-zookeeper


    【解决方案1】:

    找到问题的原因。

    原来SynonymExpandingExtendedDismaxQParserPlugin 是我上传的配置文件中的 SolrConfig.xml 中使用的实际插件。

    此插件可通过https://github.com/healthonnet/hon-lucene-synonyms 获得,我必须将其复制到/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/ 文件夹 - 我必须将该 jar 文件粘贴到此文件夹中。我重新启动了 Solr,然后成功地执行了上述命令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-19
      • 1970-01-01
      • 1970-01-01
      • 2019-01-13
      • 2021-09-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多