Solr创建集合错误

时间:2017-12-21 13:42:11

标签: solr apache-zookeeper

我正在使用HDP 2.5和最新的solr版本7.1.0。当我尝试通过solr创建集合时,我得到以下错误,我认为问题在于zookeeper。请找我的日志

$ ./solr create -c test_solr./solr: line 2017: /opt/solr-7.1.0/solr-7.1.0/bin/solr-8983.pid: Permission denied
Warning: Available entropy is low. As a result, use of the UUIDField, SSL, or any other features that require
RNG might not work properly. To check for the amount of available entropy, use 'cat /proc/sys/kernel/random/entropy_avail'.
Waiting up to 180 seconds to see Solr running on port 8983 [\]  
Started Solr server on port 8983 (pid=24630). Happy searching!

$ ./solr create -c test_solr
WARNING: Using _default configset. Data driven schema functionality is enabled by default, which is
         NOT RECOMMENDED for production use.
         To turn it off:
            curl http://localhost:8886/solr/test_solr/config -d '{"set-user-property": {"update.autoCreateFields":"false"}}'

ERROR: KeeperErrorCode = ConnectionLoss for /clusterstate.json

我可以在solr admin ui中获得收藏。但我无法创建集合。请给我一些解决方案!!。

1 个答案:

答案 0 :(得分:0)

您用于HDP的版本似乎尝试直接与Zookeeper和Solr集成,例如通过SolrJ客户端。

SolrJ使用的版本 - 或者在HDP中创建的库 - 太旧了,并没有移植到更现代的Solr版本,其中每个集合都有自己的state.json - 并且clusterstate.json已被删除

你可能会对旧的Solr版本(4.10.2)有更多的好运,但是这个版本缺少现代Solr所支持的功能。