zookeeper集群配置 Error: Could not find or load main class org.apache.solr.cloud.ZkCLI

zookeeper管理solrcloud集群时,在把solrcloud配置文件上传到zookeeper中出错

:

执行./zkcli.sh -zkhost 192.168.25.154:2181,192.168.25.154:2182,192.168.25.154:2183-cmd upconfig -confdir /usr/local/solrcloud/solrhome1/collection1/conf-confname myconf 命令时报错,

Error: Could not find or load main class org.apache.solr.cloud.ZkCLI

查了好的文档都不行,最后在http://stackoverflow.com/questions/15830090/reloading-zookeeper-solr-conf-schema-xml下查看到

在/home/ftpuser/solr-4.10.3/example/


执行java -DzkHost=192.168.10.128:2181,192.168.10.128:2182,192.168.10.128:2183/foo/bar -jar后,然后在执行上述命令,竟然成功了。

你可能感兴趣的:(java)