[
https://issues.apache.org/jira/browse/SOLR-17690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Høydahl resolved SOLR-17690.
--------------------------------
Resolution: Fixed
> Solr CLI tools like zk cp does not read ZK_HOST
> -----------------------------------------------
>
> Key: SOLR-17690
> URL: https://issues.apache.org/jira/browse/SOLR-17690
> Project: Solr
> Issue Type: Bug
> Components: cli, scripts and tools
> Affects Versions: 9.8
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Priority: Major
> Labels: pull-request-available
> Fix For: 9.10
>
> Time Spent: 5h 20m
> Remaining Estimate: 0h
>
> As reported in solr operator issue
> [https://github.com/apache/solr-operator/issues/762] there is a regression in
> solr-operator 0.9 which uses {{solr zk cp}} instead of {{{}zkCli.sh{}}}, so
> that when using a combo of operator 0.9 and Solr 9.8.0, the script will fail
> due to not picking up {{ZK_HOST}} env.var.
> Older solr-operator used {{zkCli.sh}} which read the env.var but had other
> issues. Pre 9.8 versions of Solr parsed "solr zk cp" command in bash instead
> of Java and thus works.
> The solution is to enable CLI tools to get ZK_HOST from environment if
> {{--zk-host}} is not passed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]