From 43afcdbe652ff114b23f61518e09df8f469fd82f Mon Sep 17 00:00:00 2001 From: Chingis Sandanov Date: Wed, 26 Feb 2025 20:41:03 +0700 Subject: [PATCH] Set solr url and zookeeper host explicitly when set auth --- bin/init_solr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/init_solr b/bin/init_solr index 06dd7ae..697cf56 100755 --- a/bin/init_solr +++ b/bin/init_solr @@ -16,7 +16,7 @@ if [[ -n "${ZK_HOST}" ]]; then make create-collection collection="default" host="${host}" num_shards="${#num_shards[@]}" config="_default" \ -f /usr/local/bin/actions.mk fi - solr zk cp file:/security.json zk:/security.json + solr zk cp file:/security.json zk:/security.json --solr-url "http://${host}:8983" --zk-host "${ZK_HOST}" if [[ -n "${SOLR_CLOUD_PASSWORD}" ]]; then sleep 5 make update-password host="${host}" username=solr password=SolrRocks new_password="${SOLR_CLOUD_PASSWORD}" \