You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Andrej van der Zee <an...@gmail.com> on 2015/12/16 13:18:31 UTC

Where/howto store store.xml in Zookeeper?

Hi,

When I start a Solr cloud instance, I keep getting this in the log:

800  INFO  (main) [   ] o.a.s.c.c.ConnectionManager Client is connected to
ZooKeeper
800  INFO  (main) [   ] o.a.s.c.c.SolrZkClient Using default ZkACLProvider
805  INFO  (main) [   ] o.a.s.s.SolrDispatchFilter Loading solr.xml from
SolrHome (not found in ZooKeeper)
807  INFO  (main) [   ] o.a.s.c.SolrXmlConfig Loading container
configuration from /opt/solr/server/solr/solr.xml
852  INFO  (main) [   ] o.a.s.c.CoresLocator Config-defined core root
directory: /opt/solr/server/solr

I have tried several variations to upload solr.xml to Zookeeper like these:

 /opt/solr/server/scripts/cloud-scripts/zkcli.sh -cmd upconfig -confdir
/etc/zookeeper/solr.xml -confname solr -z 1.2.3.4:2181

But somehow the Solr instances cant find it.

Thanks,
Andrej

Re: Where/howto store store.xml in Zookeeper?

Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/16/2015 5:18 AM, Andrej van der Zee wrote:
> I have tried several variations to upload solr.xml to Zookeeper like these:
>
>  /opt/solr/server/scripts/cloud-scripts/zkcli.sh -cmd upconfig -confdir
> /etc/zookeeper/solr.xml -confname solr -z 1.2.3.4:2181
>
> But somehow the Solr instances cant find it.

The "upconfig" command uploads an entire collection configuration to
zookeeper under the /configs location in the ZK database.  It doesn't
handle solr.xml or anything else at the root of the database.

This is what you need:

https://cwiki.apache.org/confluence/display/solr/Using+ZooKeeper+to+Manage+Configuration+Files#UsingZooKeepertoManageConfigurationFiles-PreparingZooKeeperbeforefirstclusterstart

Thanks,
Shawn