2015-10-06 63 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,然後成功執行了所提到的命令。