Apache zookeeper 创建SolrCore时出错。。。Zookeeper中不存在指定的配置:默认值

Apache zookeeper 创建SolrCore时出错。。。Zookeeper中不存在指定的配置:默认值,apache-zookeeper,solrcloud,Apache Zookeeper,Solrcloud,我使用了以下命令: ./solr -e cloud -z localhost:2181 -noprompt 最后的信息如下: { "responseHeader":{ "status":0, "QTime":1616}, "failure":{ "":"org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'gettingstar

我使用了以下命令:

./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"}}
确认动物园管理员正在运行

[zk: localhost:2181(CONNECTED) 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机器上,使用以下指南通过Alternations命令设置jar、java、javac等,但我认为您可以将java/bin目录添加到当前路径以解决此问题:

使用以下命令将默认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/collection1/conf默认情况下,ZooKeeper的配置目录正确无误。我执行了一个“which jar”,但没有找到它。在创建了一个符号链接ln-s/usr/bin/jar之后,问题就解决了。需要调查替代方案不起作用的原因。备选方案-安装/usr/bin/jar$JAVA\u安装/bin/jar 2备选方案-设置jar$JAVA\u安装/bin/jar