• Home
  • LLMs
  • Docker
  • Kubernetes
  • Java
  • Maven
  • About
Apache Solr | Uploading Solr configuration to ZooKeeper
  1. Uploading Solr configuration to ZooKeeper

  1. Uploading Solr configuration to ZooKeeper
    To upload a Solr configuration ("sample_techproducts_configs") to ZooKeeper, execute the following command:
    (note the usage of "chroot" znode "/solr")
    $ ${SOLR_ROOT}/server/scripts/cloud-scripts/zkcli.sh \
    -zkhost "localhost:2181/solr" \
    -cmd upconfig \
    -confname solr_config1 \
    -confdir ${SOLR_HOME}/configsets/sample_techproducts_configs/conf

    You can verify that the configuration is created in ZooKeeper:
    $ ${SOLR_ROOT}/bin/solr zk ls /solr/configs -z "localhost:2181,localhost:2182,localhost:2183"
    $ _default
    solr_config1

    You can notice the configuration "_default" which is, by default, created/uploaded to ZooKeeper when Solr start the first time ("${SOLR_HOME}/configsets/_default").
© 2025  mtitek