You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2018/06/01 01:58:00 UTC

[jira] [Commented] (SOLR-9272) Auto resolve zkHost for bin/solr zk for running Solr

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

Steve Rowe commented on SOLR-9272:
----------------------------------

{quote}
Whether the current cluster will be SSL configured (HTTPS) or conventional HTTP, is RANDOMIZED. Either https or http will be supported, not both in any case.
Now, in our code, specifically say, we look for zk host corresponding to :: http://localhost:[solr_port]/solr. What should be done?
[...]
I have fixed the SSL issue by smartly retrying whenever HTTP schema fails and SSL is configured. Attached updated patch. Requesting feedback and comments.
{quote}

{{RunExampleTool}} passes the {{-urlScheme}} param ({{bin/solr}} & {{bin\solr.cmd}} pass {{SOLR_URL_SCHEME}} env. var.'s value); couldn't the {{zk}} sub-commands do the same?  Then testing could add a param for this, and you wouldn't have to do the "smart retry" thing.

> Auto resolve zkHost for bin/solr zk for running Solr
> ----------------------------------------------------
>
>                 Key: SOLR-9272
>                 URL: https://issues.apache.org/jira/browse/SOLR-9272
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>    Affects Versions: 6.2
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>            Priority: Major
>              Labels: newdev
>         Attachments: SOLR-9272.patch, SOLR-9272.patch, SOLR-9272.patch, SOLR-9272.patch, SOLR-9272.patch, SOLR-9272.patch, SOLR-9272.patch, SOLR-9272.patch, SOLR-9272.patch
>
>
> Spinoff from SOLR-9194:
> We can skip requiring {{-z}} for {{bin/solr zk}} for a Solr that is already running. We can optionally accept the {{-p}} parameter instead, and with that use StatusTool to fetch the {{cloud/ZooKeeper}} property from there. It's easier to remember solr port than zk string.
> Example:
> {noformat}
> bin/solr start -c -p 9090
> bin/solr zk ls / -p 9090
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org