solr程序在服务器上运行正常,在本地报错,错误如下,怎么接??报错-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

solr程序在服务器上运行正常,在本地报错,错误如下,怎么接??报错

爱吃鱼的程序员 2020-06-08 20:16:42 263
Exception in thread "main" org.apache.solr.common.cloud.ZooKeeperException: 
	at org.apache.solr.client.solrj.impl.CloudSolrClient.connect(CloudSolrClient.java:486)
	at com.huawei.fusioninsight.solr.example.TestSample.getCloudSolrClient(TestSample.java:97)
	at com.huawei.fusioninsight.solr.example.TestSample.main(TestSample.java:281)
Caused by: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /clusterstate.json
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:131)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1847)
	at org.apache.solr.common.cloud.SolrZkClient$4.execute(SolrZkClient.java:294)
	at org.apache.solr.common.cloud.SolrZkClient$4.execute(SolrZkClient.java:291)
	at org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:66)
	at org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:291)
	at org.apache.solr.common.cloud.ZkStateReader.createClusterStateWatchersAndUpdate(ZkStateReader.java:279)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.connect(CloudSolrClient.java:478)



Java
分享到
取消 提交回答
全部回答(1)
  • 爱吃鱼的程序员
    2020-06-08 20:16:57

    包错了吧,显示的集群的包,异常
    谢谢了,一经发现问题,是ZooKeeper路径问题,连接不上

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题
推荐课程