我正试图以SolrCloud
模式启动Solr。我已经从collection1
创建了一个新集合,并通过设置属性core.properties
在文件name=logmail
中更改了其名称。
但是当我启动Solr时,我收到以下错误
$ java -Dcollection.configName=logmail -DzkRun -Dnumshards=2 -DBootstrap_confdir=./solr/logmail/conf -jar start.jar
2165 [main] INFO org.apache.solr.common.cloud.ZkStateReader - 从ZooKeeper更新集群状态... 2179 [OverseerStateUpdate-94955713964081152-127.0.1.1:8983_solr-n_0000000001] INFO org.apache.solr.cloud.Overseer - 开始处理main queue 2197 [main] INFO org.apache.solr.core.CoresLocator - 正在寻找 对于/ home / rahul / Desktop / dev / solrcloud / solr下的核心定义 2203 [main] INFO org.apache.solr.core.CoresLocator - 找到核心 logmail in / home / rahul / Desktop / dev / solrcloud / solr / logmail / 2204 [main] INFO org.apache.solr.core.CoresLocator - 找到的核心集合1 / home / rahul / Desktop / dev / solrcloud / solr / collection1 / 2204 [main] INFO org.apache.solr.core.CoresLocator - 找到2个核心定义2207 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 发布core = logmail state = down collection = logmail 2207 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 发布core = collection1 state = down collection = collection1 2208 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 在描述符上找不到numShards - 从系统属性中读取它 2208 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 找不到numShards descriptor - 从系统属性2214读取它 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 查找我们的核心节点名称2214 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 等待查找分片ID clusterate for logmail 2214 [zkCallback-2-thread-1] INFO org.apache.solr.cloud.DistributedQueue - 已触发NodeChildrenChanged 路径/监督/队列状态SyncConnected 2215 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 检查收集zkNode:logmail 2222 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 查找我们的核心节点名称2222 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 在中创建集合 ZooKeeper:logmail 2222 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 等待查找分片ID clustertate for collection1 2223 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 寻找收藏 configName 2223 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 检查集合 zkNode:collection1 2224 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 在中创建集合 ZooKeeper:collection1 2224 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 寻找收藏 configName 2225 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 无法找到集合 configName - 暂停3秒并再次尝试 - 尝试:1 2226 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 无法找到集合configName - 暂停3秒和 再试一次 - 尝试:1 2226 [OverseerStateUpdate-94955713964081152-127.0.1.1:8983_solr-n_0000000001] INFO org.apache.solr.cloud.Overseer - 更新状态numShards = null message = {"核心":" logmail","角色":null,
" BASE_URL":" http://127.0.1.1:8983/solr&#34 ;,
" node_name":" 127.0.1.1:8983_solr"," state":" down"," shard":null ,
"收集":" logmail","操作":"州"} 2226 [OverseerStateUpdate-94955713964081152-127.0.1.1:8983_solr-n_0000000001] INFO org.apache.solr.cloud.Overseer - node = core_node1已经存在 注册2227 [OverseerStateUpdate-94955713964081152-127.0.1.1:8983_solr-n_0000000001] INFO org.apache.solr.cloud.Overseer - shard = shard1已经存在 注册2255 [zkCallback-2-thread-1] INFO org.apache.solr.common.cloud.ZkStateReader - 群集状态更改: WatchedEvent状态:SyncConnected类型:NodeDataChanged 路径:/clusterstate.json,已经发生 - 更新...(实时节点大小: 1)2268 [OverseerStateUpdate-94955713964081152-127.0.1.1:8983_solr-n_0000000001] INFO org.apache.solr.cloud.Overseer - 更新状态numShards = null message = {" core":" collection1"," roles":null,
" BASE_URL":" http://127.0.1.1:8983/solr&#34 ;,
" node_name":" 127.0.1.1:8983_solr"," state":" down"," shard":null ,
"集合":"集合1","操作":"州"} 2268 [OverseerStateUpdate-94955713964081152-127.0.1.1:8983_solr-n_0000000001] INFO org.apache.solr.cloud.Overseer - node = core_node1已经存在 注册2269 [OverseerStateUpdate-94955713964081152-127.0.1.1:8983_solr-n_0000000001] INFO org.apache.solr.cloud.Overseer - shard = shard1已经存在 注册2288 [zkCallback-2-thread-1] INFO org.apache.solr.cloud.DistributedQueue - 已触发NodeChildrenChanged 路径/监督/队列状态SyncConnected 2318 [zkCallback-2-thread-1] INFO org.apache.solr.common.cloud.ZkStateReader - 集群状态 更改:WatchedEvent状态:SyncConnected类型:NodeDataChanged 路径:/clusterstate.json,已经发生 - 更新...(实时节点大小: 1)5227 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 无法找到集合 configName - 暂停3秒并再次尝试 - 尝试:2 5228 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 无法找到集合configName - 暂停3秒和 再试一次 - 尝试:2 8229 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 无法找到集合 configName - 暂停3秒并再次尝试 - 尝试:3 8229 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 无法找到集合configName - 暂停3秒和 再试一次 - 尝试:3 11232 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 无法找到集合 configName - 暂停3秒并再次尝试 - 尝试:4 11232 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 无法找到集合configName - 暂停3秒和 再试一次 - 尝试:4 14237 [coreLoadExecutor-6-thread-1] INFO org.apache.solr.cloud.ZkController - 无法找到集合 configName - 暂停3秒并再次尝试 - 尝试:5 14237 [coreLoadExecutor-6-thread-2] INFO org.apache.solr.cloud.ZkController - 无法找到集合configName - 暂停3秒和 再试一次 - 尝试:5 17237 [coreLoadExecutor-6-thread-1]错误 org.apache.solr.cloud.ZkController - 无法找到configName 集合logmail 17238 [coreLoadExecutor-6-thread-2]错误 org.apache.solr.cloud.ZkController - 无法找到configName collection collection1 17240 [coreLoadExecutor-6-thread-1]错误 org.apache.solr.core.CoreContainer - 创建核心[logmail]时出错: 找不到收集logmail的configName:null org.apache.solr.common.cloud.ZooKeeperException:找不到 收集logmail的configName找到:null
答案 0 :(得分:3)
看起来Solr在基于命令的集合文件系统和zookeeper中的内容之间可能存在差异。
这些很难解决;如果可能的话,我建议从zookeeper中删除你的配置文件并重新加载它们。
答案 1 :(得分:-1)
你的命令中有一个拼写错误。这应该可以解决问题:
$ java -Dcollection.configName=logmail -DzkRun -Dnumshards=2 -Dbootstrap_confdir=./solr/logmail/conf -jar start.jar