【发布时间】:2017-03-27 02:06:14
【问题描述】:
我使用了以下命令:
./solr -e cloud -z localhost:2181 -noprompt
最后的信息如下:
{
"responseHeader":{
"status":0,
"QTime":1616},
"failure":{
"":"org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'gettingstarted_shard2_replica1': Unable to create core [gettingstarted_shard2_replica1] Caused by: Specified config does not exist in ZooKeeper:default",
"":"org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'gettingstarted_shard1_replica1': Unable to create core [gettingstarted_shard1_replica1] Caused by: Specified config does not exist in ZooKeeper:default",
"":"org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'gettingstarted_shard2_replica2': Unable to create core [gettingstarted_shard2_replica2] Caused by: Specified config does not exist in ZooKeeper:default",
"":"org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'gettingstarted_shard1_replica2': Unable to create core [gettingstarted_shard1_replica2] Caused by: Specified config does not exist in ZooKeeper:default"}}
确认 zookeeper 正在运行
[zk: localhost:2181(CONNECTED) 0]
我几乎四处寻找,无法克服。有人可以帮忙吗?
【问题讨论】:
-
使用以下命令将默认 Solr 配置文件部署到嵌入式 ZooKeeper:/opt/solr/solr-4.10.3/example/scripts/cloud-scripts/zkcli.sh -zkhost localhost:2181 -cmd upconfig - confdir /opt/solr/solr-4.10.3/example/solr/collection1/conf -confname default 成功将/opt/solr/solr-4.10.3/example/solr/collection1/conf配置目录部署到ZooKeeper默认
标签: apache-zookeeper solrcloud