开发者社区> 问答> 正文

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

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)



展开
收起
爱吃鱼的程序员 2020-06-08 20:16:42 1342 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

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

    2020-06-08 20:16:57
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS快储存加密技术 立即下载