首页 > 解决方案 > 将配置目录上传到zookeeper时出现solrCloud错误

问题描述

我正在使用以下命令将配置从 solr 上传到 zookeeper。

solr zk upconfig -n example1 -d conf

我收到以下错误,同时我看到 example1 配置已添加到 zookeeper 但 solconfig.xml、托管模式、其他同义词文件在那里丢失,有什么原因吗?

将配置示例 1 的 D:\solr-7.5.0\bin\conf 上传到 localhost:2181,localhost:2184,localhost:2185 的 ZooKeeper WARN - 2019-01-02 17:06:59.441; org.apache.zookeeper.ClientCnxn;服务器 0:0:0:0:0:0:0:1/0:0:0:0:0:0:0:1:2181 的会话 0x100419a6c9a000b,意外错误,关闭套接字连接并尝试重新连接 java.io .IOException: 远程主机在 sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.8.0_161] at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java: 43) ~[?:1.8.0_161] 在 sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:1.8.0_161] 在 sun.nio.ch.IOUtil.read(IOUtil.java: 192) ~[?:1.8.0_161] 在 sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) ~[?:1.8.0_161] 在 org.apache。zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:68)~[zookeeper-3.4.11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:66)~[ .11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1144) [zookeeper-3.4.11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] WARN - 2019-01 -02 17:06:59.552;org.apache.solr.common.cloud.ConnectionManager;Watcher org.apache.solr.common.cloud.ConnectionManager@3343041c name: ZooKeeperConnection Watcher:localhost:2181,localhost:2184,localhost:2185 got event WatchedEvent state:Disconnected type:None path:null path: null type: None jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:366) ~[zookeeper-3.4.11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] at org.apache.zookeeper.ClientCnxn$ SendThread.run(ClientCnxn.java:1144) [zookeeper-3.4.11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] 警告 - 2019-01-02 17:06:59.552; org.apache.solr.common.cloud.ConnectionManager;Watcher org.apache.solr.common.cloud.ConnectionManager@3343041c name: ZooKeeperConnection Watcher:localhost:2181,localhost:2184,localhost:2185 got event WatchedEvent state:Disconnected type:None path:null path: null type: None jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:366) ~[zookeeper-3.4.11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] at org.apache.zookeeper.ClientCnxn$ SendThread.run(ClientCnxn.java:1144) [zookeeper-3.4.11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] 警告 - 2019-01-02 17:06:59.552; org.apache.solr.common.cloud.ConnectionManager;Watcher org.apache.solr.common.cloud.ConnectionManager@3343041c name: ZooKeeperConnection Watcher:localhost:2181,localhost:2184,localhost:2185 got event WatchedEvent state:Disconnected type:None path:null path: null type: None 366) ~[zookeeper-3.4.11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] 在 org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1144) [zookeeper-3.4.11.jar:3.4.11- 37e277162d567b55a07d1755f0b31c32e93c01a0] 警告 - 2019-01-02 17:06:59.552; org.apache.solr.common.cloud.ConnectionManager;Watcher org.apache.solr.common.cloud.ConnectionManager@3343041c name: ZooKeeperConnection Watcher:localhost:2181,localhost:2184,localhost:2185 got event WatchedEvent state:Disconnected type:None path:null path: null type: None 366) ~[zookeeper-3.4.11.jar:3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0] 在 org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1144) [zookeeper-3.4.11.jar:3.4.11- 37e277162d567b55a07d1755f0b31c32e93c01a0] 警告 - 2019-01-02 17:06:59.552; org.apache.solr.common.cloud.ConnectionManager;Watcher org.apache.solr.common.cloud.ConnectionManager@3343041c name: ZooKeeperConnection Watcher:localhost:2181,localhost:2184,localhost:2185 got event WatchedEvent state:Disconnected type:None path:null path: null type: None

标签: solrsolrjsolrcloudsolr4solrnet

解决方案


推荐阅读