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 件事
apache collections api_zh
NULL 博文链接:https://pxchen.iteye.com/blog/701637
赠送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 部分
包含翻译后的API文档:eclipse-collections-7.1.2-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.eclipse.collections:eclipse-collections:7.1.2; 标签:eclipse、collections、中文文档、jar包、java; ...
包含翻译后的API文档:commons-collections4-4.4-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.apache.commons:commons-collections4:4.4; 标签:apache、collections4、commons、jar包、java、...
包含翻译后的API文档:commons-collections-3.2.2-javadoc-API文档-中文(简体)版.zip; Maven坐标:commons-collections:commons-collections:3.2.2; 标签:collections、commons、jar包、java、中文文档; 使用...
包含翻译后的API文档:commons-collections-3.2.2-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:commons-collections:commons-collections:3.2.2; 标签:collections、commons、jar包、java、API文档...
包含翻译后的API文档:commons-collections4-4.1-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.apache.commons:commons-collections4:4.1; 标签:apache、commons、collections4、中文文档、jar包、java; ...
包含翻译后的API文档:commons-collections-3.2.1-javadoc-API文档-中文(简体)版.zip 对应Maven信息:groupId:commons-collections,artifactId:commons-collections,version:3.2.1 使用方法:解压翻译后的API...
api-collections:api集合
Commons collectionsAPI.chm apache Commons collections API.chm
包含翻译后的API文档:commons-collections4-4.4-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.apache.commons:commons-collections4:4.4; 标签:apache、collections4、commons、jar包、java、中文文档; ...
赠送原API文档:commons-collections-3.2.1-javadoc.jar 赠送源代码:commons-collections-3.2.1-sources.jar 包含翻译后的API文档:commons-collections-3.2.1-javadoc-API文档-中文(简体)-英语-对照版.zip 对应...
包含翻译后的API文档:commons-collections4-4.1-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.apache.commons:commons-collections4:4.1; 标签:apache、commons、collections4、中英对照文档、...
包含翻译后的API文档:eclipse-collections-7.1.2-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.eclipse.collections:eclipse-collections:7.1.2; 标签:eclipse、collections、中英对照文档、jar...
包含翻译后的API文档:eclipse-collections-forkjoin-7.1.2-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.eclipse.collections:eclipse-collections-forkjoin:7.1.2; 标签:eclipse、collections、forkjoin...
有关 Collections API 的更多信息,请访问例子说,我们有以下初始数据的集合: { '_key' : u'foo' , 'another_value' : u'another_bar' , 'value' : u'bar' }{ '_key' : u'foo1' , 'value' : u'bar1' }从定义模型...