You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Subhajit Das (Jira)" <ji...@apache.org> on 2021/03/12 07:09:00 UTC

[jira] [Comment Edited] (SOLR-15231) zk upconfig does not recognize ZK_HOST style url

    [ https://issues.apache.org/jira/browse/SOLR-15231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17300095#comment-17300095 ] 

Subhajit Das edited comment on SOLR-15231 at 3/12/21, 7:08 AM:
---------------------------------------------------------------

Update: It seems the issue is coming when the cmd script is run on Powershell, rather than command prompt. Powershell is breaking the comma separated zkhost and gives only first token, when ZK_HOST is set via %~2.

There seems to be no mechanism implemented, to refuse powershell execution. And documentation found, forbidding powershell.

Checking on best possible solution.

[~janhoy] The code you pointed is used by other Tools. Needs further analysis on it.


was (Author: subhajitdas298):
Update: It seems the issue is coming when the cmd script is run on Powershell, rather than command prompt. Powershell is breaking the comma separated zkhost and gives only first token, when ZK_HOST is via %~2.

There seems to be no mechanism implemented to refuse powershell execution. And documentation found, forbidding powershell.

Checking on best possible solution.

[~janhoy] The code you pointed is used by other Tools. Needs further analysis on it.

> zk upconfig does not recognize ZK_HOST style url
> ------------------------------------------------
>
>                 Key: SOLR-15231
>                 URL: https://issues.apache.org/jira/browse/SOLR-15231
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCLI
>    Affects Versions: 8.8.1
>            Reporter: Subhajit Das
>            Priority: Minor
>              Labels: documentation, features, newdev
>
> While uploading new configset to zookeeper using Solr control script, the -z parameter is not recognizing ZK_HOST style string.
>  
>  Say, I use <ip-1>,<ip-2>,<ip-3>/solr, then the config is uploaded to <ip-1> directly, instead of /solr znode.
>  
>  Note: <ip-1>/solr,<ip-2>/solr,<ip-3>/solr seems to work.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)