启动Solr服务报错:Path must not end with / character

本文解决了一个在使用Solr的UIConsole进行AddCore操作时遇到的Bug,详细描述了如何避免和修复由Cloudera Search创建核心时系统变得无响应的问题。通过更新新核心的属性值,可以绕过此问题。如果已创建核心并遇到错误,可以通过移除具有特定属性的ZooKeeper节点来解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  今天在第一次对Solr的UI Console进行Add Core操作的时候,用了默认选项,提交后页面无反应,而Solr的日志抛出大量如下日志:

ERROR org.apache.solr.cloud.Overseer: Exception in Overseer main queue loop
java.lang.IllegalArgumentException: Path must not end with / character

重启Solr服务后一样循环抛出大量以上Log,网上查资料,发现这竟然是Cloudera的一个Bug,具体描述如下:

Cloudera Search

— Creating cores using the web UI with default values causes the system to become unresponsive

You can use the Solr Server web UI to create new cores. If you click Create Core without making any changes to the default attributes, the server may become unresponsive. Checking the log for the server shows a repeated error that begins:

ERROR org.apache.solr.cloud.Overseer: Exception in Overseer main queue loop
java.lang.IllegalArgumentException: Path must not end with / character

Bug: Solr-5813

Severity: Medium

Workaround: To avoid this issue, do not create cores without first updating values for the new core in the web UI. For example, you might enter a new name for the core to be created.

If you created a core with default settings and are seeing this error, you can address the problem by finding which node is having problems and removing that node. Find the problematic node by using a tool that can inspect ZooKeeper, such as the Solr Admin UI. Using such a tool, examine items in the ZooKeeper queue, reviewing the properties for the item. The problematic node will have an item in its queue with the property collection="".

Remove the node with the item with the collection="" property using a ZooKeeper management tool. For example, you can remove nodes using the ZooKeeper command line tool or recent versions of HUE.

最后的解决方案如下:
1、删除每一个zookeeper节点的/usr/lib/zookeeper目录下的/version-2的全部内容
2、重启集群
3、初始化Solr
4、启动Solr服务,看日志一切恢复正常


转载于:https://www.cnblogs.com/irismyangel/articles/3848709.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值