`
JLK
  • 浏览: 234443 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Collections API timeouts

    博客分类:
  • solr
 
阅读更多

Such timeout can occur when Solr is not able to obtain cluster state. If following call is results in timeout, then this is the case

http://solr-hostname:8983/solr/admin/collections?action=CLUSTERSTATUS&wt=json

This may be caused by incorrect entries present in /clusterstate.json

To fix this:

 

  • get clusterstate from ZooKeeper by calling

    zkcli.sh -zkhost localhost:2181 -cmd get /clusterstate.json > clusterstate.json
    
  • edit extracted clusterstate.json file and remove sections with wrong IPs or not existing hosts
  • clear the clusterstate in ZooKeeper by calling

    zkcli.sh -zkhost localhost:2181 -cmd clear /clusterstate.json
    
  • save corrected state in ZooKeeper by sending updated JSON file

    zkcli.sh -zkhost localhost:2181 -cmd putfile /clusterstate.json ./clusterstate.json`
    
  • restart Solr instances

After that, if your clusterstate shows correct info, you should no longer have timeouts when accessing Collections API.

Note

Be careful when editing clusterstate JSON, limit your changes only to removing not existing hosts/replicas/shards.

分享到:
评论

相关推荐

    关于 Java Collections API 您不知道的 5 件事

    ### 关于 Java Collections API 您不知道的 5 件事 #### 1. Collections 比数组更好 在 Java 的早期阶段,为了回应 C++ 开发者对于性能的批评,Java 引入了数组这一概念。然而,随着时间的发展,Java 的 ...

    关于 Java Collections API 您不知道的 5 件事,第 2 部分

    Java Collections API 是Java编程语言中不可或缺的一部分,它提供了丰富的接口和类来操作各种集合,如List、Set、Map等。这篇博客的第二部分将深入探讨关于Collections API的一些不那么为人所知的知识点,旨在帮助...

    apache collections api_zh

    apache collections api_zh

    eclipse-collections-api-7.1.2-API文档-中英对照版.zip

    赠送jar包:eclipse-collections-api-7.1.2.jar; 赠送原API文档:eclipse-collections-api-7.1.2-javadoc.jar; 赠送源代码:eclipse-collections-api-7.1.2-sources.jar; 赠送Maven依赖信息文件:eclipse-...

    关于 Java Collections API 您不知道的 5 件事,第 1 部分

    ### 关于 Java Collections API 您不知道的 5 件事,第 1 部分 在 Java 开发领域,Collections API 已成为一种不可或缺的工具,它不仅简化了许多常见的编程任务,还提供了丰富的特性和灵活性。然而,对于许多开发者...

    eclipse-collections-7.1.2-API文档-中文版.zip

    包含翻译后的API文档:eclipse-collections-7.1.2-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.eclipse.collections:eclipse-collections:7.1.2; 标签:eclipse、collections、中文文档、jar包、java; ...

    commons-collections4-4.4-API文档-中英对照版.zip

    包含翻译后的API文档:commons-collections4-4.4-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.apache.commons:commons-collections4:4.4; 标签:apache、collections4、commons、jar包、java、...

    commons-collections4-4.4-API文档-中文版.zip

    包含翻译后的API文档:commons-collections4-4.4-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.apache.commons:commons-collections4:4.4; 标签:apache、collections4、commons、jar包、java、中文文档; ...

    commons-collections-3.2.2-API文档-中文版.zip

    包含翻译后的API文档:commons-collections-3.2.2-javadoc-API文档-中文(简体)版.zip; Maven坐标:commons-collections:commons-collections:3.2.2; 标签:collections、commons、jar包、java、中文文档; 使用...

    commons-collections-3.2.1-API文档-中文版.zip

    包含翻译后的API文档:commons-collections-3.2.1-javadoc-API文档-中文(简体)版.zip 对应Maven信息:groupId:commons-collections,artifactId:commons-collections,version:3.2.1 使用方法:解压翻译后的API...

    commons-collections-3.2.2-API文档-中英对照版.zip

    包含翻译后的API文档:commons-collections-3.2.2-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:commons-collections:commons-collections:3.2.2; 标签:collections、commons、jar包、java、API文档...

    commons-collections4-4.1-API文档-中文版.zip

    包含翻译后的API文档:commons-collections4-4.1-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.apache.commons:commons-collections4:4.1; 标签:apache、commons、collections4、中文文档、jar包、java; ...

    Commons collections

    Commons collectionsAPI.chm apache Commons collections API.chm

    api-collections:api集合

    "api-collections" 提供了一组API的集合,这些API可能包含了多种功能和用途,以方便开发者在不同的项目中进行快速集成和开发。本项目特别关注的是使用Kotlin语言实现的API。 Kotlin是一种由JetBrains开发的静态类型...

    Apache Commons Collections 4.0 API+jar包

    Apache Commons Collections 4.0 API 是一个非常重要的Java库,它是Apache软件基金会开发的一个开源项目。这个库提供了大量的集合框架的扩展,使得开发者能够更高效、便捷地处理各种数据结构和算法。Apache Commons ...

    commons-collections4-4.1-API文档-中英对照版.zip

    包含翻译后的API文档:commons-collections4-4.1-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.apache.commons:commons-collections4:4.1; 标签:apache、commons、collections4、中英对照文档、...

    commons-collections-3.2.1-API文档-中英对照版.zip

    赠送原API文档:commons-collections-3.2.1-javadoc.jar 赠送源代码:commons-collections-3.2.1-sources.jar 包含翻译后的API文档:commons-collections-3.2.1-javadoc-API文档-中文(简体)-英语-对照版.zip 对应...

    Apress的《Java Collections》

    《Java Collections》是Apress出版社出版的一本专著,它深入浅出地讲解了Java Collections框架,这是一套用于管理对象集合的强大的API。这本书针对Java程序员,无论你是初学者还是经验丰富的开发者,都能从中...

    eclipse-collections-7.1.2-API文档-中英对照版.zip

    包含翻译后的API文档:eclipse-collections-7.1.2-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.eclipse.collections:eclipse-collections:7.1.2; 标签:eclipse、collections、中英对照文档、jar...

Global site tag (gtag.js) - Google Analytics