首页 文章

Solr Cloud 4.3所有实例都返回404结果

提问于
浏览
0

我有一个带有1个外部zookeeper的Solr Cloud,它有2个集合,每个集合分为2个分片,如下所示:

solr#1 - > collection 1 - shard 1,collection 2 - shard 1

solr#2 - > collection 1 - shard 2,collection 2 - shard 2

在Solr 4.2.1中一切运行正常,直到我升级(从头开始设置)到4.3.1 . 所有设置都保持不变,但现在对 Cloud 的任何查询都会返回404错误 . 但是,所有分片都显示在Admin UI Solr Cloud部分中 . 有什么理由吗? 4.3中有什么变化吗?

`host:port/solr/collection1/select?q=*&wt=xml&indent=true`

结果:主机上的服务器:port / collection1返回非正常状态:404,消息:未找到 </str> <int name="code">404</int> </lst> </response>

1 回答

  • 0

    对于遇到这个的其他人..

    我也有同样的问题,似乎是因为 solr.xml 中的 hostContext 的默认值不应该像以前一样 empty 但现在应该是 "solr": solr.xml

    更改

    hostContext="${hostContext:}"
    

    hostContext="${hostContext:solr}"
    

相关问题