Solr创建集合错误



我正在使用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中获得收集。但是我无法创建收集。请给我一些解决方案!。

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

Solrj的使用版本或HDP中创建的库太旧了,并且还没有移植到更现代的Solr版本中,其中每个集合都有自己的状态。。

您可能会使用较旧的Solr版本(4.10.2)有更多运气,但是此版本缺乏现代Solr支持的很多。

最新更新