You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2016/06/08 14:41:21 UTC

[jira] [Comment Edited] (SOLR-9194) Enhance the bin/solr script to put and get arbitrary files to/from Zookeeper

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

Erick Erickson edited comment on SOLR-9194 at 6/8/16 2:40 PM:
--------------------------------------------------------------

My original suggestion was more along the lines of trying to emulate the current zkcli pattern. Which I've always found difficult to remember anyway. 

Hmmm, while we're at it, what about adding rm?
{noformat}
bin/solr zk -rm zk:/whatever
bin/solr zk -rm -r zk:/whatever
{noformat}
What do others think? If we adopt this suggestion I'd think that the upconfig and downconfig should stay as a way to be a bit more structured about configsets, as well as find the pre-packaged configsets by just name. If you knew exactly what you were doing you could just use the 'cp' syntax and ignore them.

//Removed truly silly comment, no coffee yet.

Minor quibble: We should require a hyphen before the cp, as:
{noformat}
bin/solr zk -cp zk:/security.json .
{noformat}
for consistency's sake with other commands if nothing else I think.


was (Author: erickerickson):
My original suggestion was more along the lines of trying to emulate the current zkcli pattern. Which I've always found difficult to remember anyway. 

Hmmm, while we're at it, what about adding rm?
{noformat}
bin/solr zk -rm zk:/whatever
bin/solr zk -rm -r zk:/whatever
{noformat}
What do others think? If we adopt this suggestion I'd think that the upconfig and downconfig should stay as a way to be a bit more structured about configsets, as well as find the pre-packaged configsets by just name. If you knew exactly what you were doing you could just use the 'cp' syntax and ignore them.

Minor quibble1: If we require the 'zk:' prefix, then order doesn't matter, right? Seems to me like we should either do things positionally or with the 'zk:' tag. Personally I prefer the 'zk:' tag.

Minor quibble2: We should require a hyphen before the cp, as:
{noformat}
bin/solr zk -cp zk:/security.json .
{noformat}
for consistency's sake with other commands if nothing else I think.

> Enhance the bin/solr script to put and get arbitrary files to/from Zookeeper
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-9194
>                 URL: https://issues.apache.org/jira/browse/SOLR-9194
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>            Priority: Minor
>
> There are a few other files that can reasonably be pushed to Zookeeper, e.g. solr.xml, security.json, clusterprops.json. Who knows? Even <collection>/state.json for the brave.
> This could reduce further the need for bouncing out to zkcli.
> Assigning to myself just so I don't lose track, but I would _love_ it if someone else wanted to take it...
> I'm thinking the commands would be 
> bin/solr zk -putfile -z <ensemble> -p <zookeeper path> -f <local file path>
> bin/solr zk -getfile -z <ensemble> -p <zookeeper path> -f <local file path>
> but I'm not wedded to those, all suggestions welcome.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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