2015-10-06 62 views
0

我在尝试使用下面的命令来创建SolrCloud核心建立一个核心时:错误通过指定config目录

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,为什么我得到上述错误

回答

0

找到问题的原因。

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

这个插件可以通过https://github.com/healthonnet/hon-lucene-synonyms我不得不复制到/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/文件夹 - 我不得不将这个jar文件粘贴到这个文件夹中。我重新启动了Solr,然后成功执行了所提到的命令。