/clusterstate.json的NoNode:Lily + HBase + Zookeeper

时间:2014-10-23 12:24:13

标签: solr solrcloud

我试图通过Lily从HBase索引数据,而且我遇到了一个问题:

Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /clusterstate.json

我手动将/clusterstate.json添加到zookeepers root中,并且/ solr /(在zookeeper上)有一个原始文件,因此我不知道该问题该怎么处理。< / p>

以下是日志的一个重要部分:

2014-10-23 17:42:48,860 INFO org.apache.zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.22.11:2181/solr,192.168.22.13:2181/solr sessionTimeout=10000 watcher=org.apache.solr.common.cloud.ConnectionManager@5d9329eb
2014-10-23 17:42:48,861 INFO org.apache.solr.common.cloud.ConnectionManager: Waiting for client to connect to ZooKeeper
2014-10-23 17:42:48,861 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server /192.168.22.11:2181
2014-10-23 17:42:48,862 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to hadoop1.mydomain/192.168.22.11:2181, initiating session
2014-10-23 17:42:48,864 ERROR org.lilyproject.indexer.batchbuild.IndexingMapper: Failure indexing record USER.100002222.type=friends
org.lilyproject.indexer.engine.SolrClientException: Error performing operation on Solr Solr Cloud Client
    at org.lilyproject.indexer.engine.SolrClientImpl.add(SolrClientImpl.java:64)
    at org.lilyproject.indexer.engine.Indexer.index(Indexer.java:272)
    at org.lilyproject.indexer.engine.Indexer.index(Indexer.java:186)
    at org.lilyproject.indexer.engine.Indexer.index(Indexer.java:133)
    at org.lilyproject.indexer.engine.Indexer.index(Indexer.java:123)
    at org.lilyproject.indexer.batchbuild.IndexingMapper$MappingTask.run(IndexingMapper.java:221)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.solr.common.cloud.ZooKeeperException: 
    at org.apache.solr.client.solrj.impl.CloudSolrServer.connect(CloudSolrServer.java:249)
    at org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:501)
    at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
    at org.lilyproject.indexer.engine.SolrClientImpl.add(SolrClientImpl.java:62)
    ... 11 more
Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /clusterstate.json
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:102)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
    at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:637)
    at org.apache.solr.common.cloud.SolrZkClient$10.execute(SolrZkClient.java:419)
    at org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:65)
    at org.apache.solr.common.cloud.SolrZkClient.makePath(SolrZkClient.java:416)
    at org.apache.solr.common.cloud.SolrZkClient.makePath(SolrZkClient.java:373)
    at org.apache.solr.common.cloud.SolrZkClient.makePath(SolrZkClient.java:360)
    at org.apache.solr.common.cloud.SolrZkClient.makePath(SolrZkClient.java:347)
    at org.apache.solr.common.cloud.ZkCmdExecutor.ensureExists(ZkCmdExecutor.java:96)
    at org.apache.solr.common.cloud.ZkCmdExecutor.ensureExists(ZkCmdExecutor.java:86)
    at org.apache.solr.common.cloud.ZkStateReader.createClusterStateWatchersAndUpdate(ZkStateReader.java:198)
    at org.apache.solr.client.solrj.impl.CloudSolrServer.connect(CloudSolrServer.java:242)
    ... 14 more

2 个答案:

答案 0 :(得分:0)

(将解决方案从问题转移到正确的答案)

我不知道我或者百合有什么问题,但问题是在zk路径设置中创建集合时 - 192.168.1.1:2181,192.168.1.2:2181/solr而不是192.168.1.1:2181 /solr,192.168.1.2:2181/solr

答案 1 :(得分:-1)

我遇到了同样的问题,但错误更多的是zk asemble声明的sintax,也许你在解决方案中的配置有一点错误,这个配置对我有用:

“主机1:2181,主机2:2181,host3上:2181 / solr的”

我希望这个回复适合你