On 4/11/2016 4:59 PM, Sam Xia wrote:
> Solr is installed in /locm/solr-5.5.0/ folder
>
> 1) First I create a topic connection with the following command:
>
> bin/solr create -c topic -d topic_configs_ori
>
> But there is no folder name topc in 
> /locm/solr-5.5.0/server/solr/configsets/topic after the above commend.

This command does not change anything in configsets.  Since you are in
cloud mode, it will copy that configset from the indicated directory
(topic_configs_ori) to zookeeper, to a config named "topic" -- assuming
that this config does not already exist in zookeeper.  If the named
config already exists in zookeeper, then it will be used as-is, and not
updated.  When not in cloud mode, it behaves a little differently, but
still would not create anything in configsets.

> I got the following error:
>
> ./zkcli.sh -cmd upconfig -zkhost localhost:9983 -confname topic -solrhome 
> /locm/solr-5.5.0/ -confdir 
> /locm/solr-5.5.0/server/solr/configsets/topic_configs_ori/conf
>
> Exception in thread "main" java.io.IOException: Error uploading file 
> /locm/solr-5.5.0/server/solr/configsets/topic_configs_ori/conf/get-pip.py to 
> zookeeper path /configs/topic/get-pip.py

<snip>

> Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: 
> KeeperErrorCode = ConnectionLoss for /configs/topic/get-pip.py

The stacktrace from the "caused by" exception indicates that the zkcli
command is trying to create the "/configs/topic/get-pip.py" path in the
zookeeper database and is having a problem connecting to zookeeper.  Are
you positive that "localhost:9983" is the correct connection string, and
that there is an active zookeeper server listening on that port?  FYI:
The embedded zookeeper server should not be used in production.

Side issue:  I'm curious why you have a python script in your config. 
Nothing explicitly wrong with that, it's just an odd thing to feed to a
Java program like Solr.

Thanks,
Shawn

Reply via email to