【问题标题】:Error CREATEing SolrCore ... Specified config does not exist in Zookeeper:default错误创建 SolrCore ... Zookeeper 中不存在指定的配置:默认
【发布时间】: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


【解决方案1】:

我最近下载并安装了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 机器上,并使用以下指南通过替代命令设置 jar、java、javac 等(但我认为您可以将 java/bin 目录添加到当前路径来解决问题): https://ask.fedoraproject.org/en/question/59412/cannot-find-oracle-jdk-on-fedora-21/

【讨论】:

  • 你是对的。我执行了一个“哪个罐子”,但没有找到。创建符号链接 ln -s /usr/bin/jar 后,问题就解决了。需要调查为什么替代方案不起作用。 # 替代品 --install /usr/bin/jar jar $JAVA_INSTALL/bin/jar 2 # 替代品 --set jar $JAVA_INSTALL/bin/jar
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-05-23
  • 2020-06-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-23
  • 2019-01-21
相关资源
最近更新 更多