我使用了以下命令:
./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]
我几乎无处不在,无法克服。有人可以帮忙吗?
答案 0 :(得分:0)
我最近下载并安装了solr 4.10.3,正在使用以下命令进行官方快速入门:
bin/solr start -e cloud -noprompt
并遇到了与您相同的异常:
"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"
在bash中查看我也看到了错误行:
bin/solr: line 1085: jar: command not found
这是例外的原因," jar"命令不在当前路径中。放完" jar"在我的路径中的命令,这些异常不会显示。这可能与您获得例外的原因相同。
我在Fedora机器上,并使用以下指南通过alternative命令设置jar,java,javac等(但我认为您可以将java / bin目录添加到当前路径以解决问题): https://ask.fedoraproject.org/en/question/59412/cannot-find-oracle-jdk-on-fedora-21/