janhoy opened a new pull request, #4267:
URL: https://github.com/apache/solr/pull/4267

   https://issues.apache.org/jira/browse/SOLR-17697
   
   ```
   Usage: solr zk [-hV] [COMMAND]
   Sub commands for working with ZooKeeper.
     -h, --help      Show this help message and exit.
     -V, --version   Print version information and exit.
   
   Commands:
     downconfig  Download a configset from ZooKeeper to the local filesystem.
     upconfig    Upload a configset from the local filesystem to ZooKeeper.
     cp          Copy files or folders to/from ZooKeeper or ZooKeeper to 
ZooKeeper.
     ls          List the contents of a ZooKeeper node.
     mkroot      Make a znode in ZooKeeper with no data. Can be used to make a 
path of arbitrary depth but primarily intended to create a 'chroot'.
     mv          Move (rename) a znode on ZooKeeper.
     rm          Remove a znode from ZooKeeper.
     updateacls  Update ACLs for a ZooKeeper znode.
   ```
   
   ```
   Usage: solr zk cp [-hrvV] [-s=<solrUrl>] [--solr-home=DIR] 
[-u=<credentials>] [-z=<zkHost>] <src> <dst>
   Copy files or folders to/from ZooKeeper or ZooKeeper to ZooKeeper.
   
   <src>, <dest> : [file:][/]path/to/local/file or zk:/path/to/zk/node
   NOTE: <src> and <dest> may both be ZooKeeper resources prefixed by 'zk:'
   When <src> is a zk resource, <dest> may be '.'
   If <dest> ends with '/', then <dest> will be a local folder or parent znode
   and the last element of the <src> path will be appended unless <src> also 
ends in a slash.
         <src>                  Source path: [file:][/]path/to/local/file or 
zk:/path/to/zk/node.
         <dst>                  Destination path: [file:][/]path/to/local/file 
or zk:/path/to/zk/node.
     -h, --help                 Show this help message and exit.
     -r, --recursive            Apply the command recursively.
     -s, --solr-url=<solrUrl>   Base Solr URL, which can be used to determine 
the zk-host if --zk-host is not known
         --solr-home=DIR        Required to look up configuration for 
compressing state.json.
     -u, --credentials=<credentials>
                                Credentials in the format username:password. 
Example: --credentials solr:SolrRocks
     -v, --verbose              Enable verbose mode.
     -V, --version              Print version information and exit.
     -z, --zk-host=<zkHost>     Zookeeper connection string; unnecessary if 
ZK_HOST is defined in solr.in.sh; otherwise, defaults to localhost:9983.
   
   For a full CLI reference, see 
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
   ```
   
   ```
   Usage: solr zk rm [-hrvV] [-s=<solrUrl>] [-u=<credentials>] [-z=<zkHost>] 
<path>
   Remove a znode from ZooKeeper.
         <path>                 The ZooKeeper znode path to remove (zk: prefix 
optional).
     -h, --help                 Show this help message and exit.
     -r, --recursive            Apply the command recursively.
     -s, --solr-url=<solrUrl>   Base Solr URL, which can be used to determine 
the zk-host if --zk-host is not known
     -u, --credentials=<credentials>
                                Credentials in the format username:password. 
Example: --credentials solr:SolrRocks
     -v, --verbose              Enable verbose mode.
     -V, --version              Print version information and exit.
     -z, --zk-host=<zkHost>     Zookeeper connection string; unnecessary if 
ZK_HOST is defined in solr.in.sh; otherwise, defaults to localhost:9983.
   
   For a full CLI reference, see 
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
   ```
   
   ```
   Usage: solr zk mkroot [-hvV] [--fail-on-exists] [-s=<solrUrl>] 
[-u=<credentials>] [-z=<zkHost>] <path>
   Make a znode in ZooKeeper with no data. Can be used to make a path of 
arbitrary depth but primarily intended to create a 'chroot'.
         <path>                 The ZooKeeper znode path to create.
         --fail-on-exists       Raise an error if the znode already exists. 
Defaults to false.
     -h, --help                 Show this help message and exit.
     -s, --solr-url=<solrUrl>   Base Solr URL, which can be used to determine 
the zk-host if --zk-host is not known
     -u, --credentials=<credentials>
                                Credentials in the format username:password. 
Example: --credentials solr:SolrRocks
     -v, --verbose              Enable verbose mode.
     -V, --version              Print version information and exit.
     -z, --zk-host=<zkHost>     Zookeeper connection string; unnecessary if 
ZK_HOST is defined in solr.in.sh; otherwise, defaults to localhost:9983.
   
   For a full CLI reference, see 
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
   ```
   
   ```
   Usage: solr zk mv [-hvV] [-s=<solrUrl>] [-u=<credentials>] [-z=<zkHost>] 
<src> <dst>
   Move (rename) a znode on ZooKeeper.
   
   <src>, <dest> : ZooKeeper nodes, the 'zk:' prefix is optional.
   If <dest> ends with '/', then <dest> will be a parent znode
   and the last element of the <src> path will be appended.
         <src>                  Source ZooKeeper znode path (zk: prefix 
optional).
         <dst>                  Destination ZooKeeper znode path (zk: prefix 
optional).
     -h, --help                 Show this help message and exit.
     -s, --solr-url=<solrUrl>   Base Solr URL, which can be used to determine 
the zk-host if --zk-host is not known
     -u, --credentials=<credentials>
                                Credentials in the format username:password. 
Example: --credentials solr:SolrRocks
     -v, --verbose              Enable verbose mode.
     -V, --version              Print version information and exit.
     -z, --zk-host=<zkHost>     Zookeeper connection string; unnecessary if 
ZK_HOST is defined in solr.in.sh; otherwise, defaults to localhost:9983.
   
   For a full CLI reference, see 
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
   ```
   
   ```
   usage: bin/solr zk upconfig [-hvV] -d=DIR -n=<confName> [-s=<solrUrl>] 
[-u=<credentials>] [-z=<zkHost>]
   Upload a configset from the local filesystem to ZooKeeper.
     -d, --conf-dir=DIR         Local directory with configs.
     -h, --help                 Show this help message and exit.
     -n, --conf-name=<confName> Configset name in ZooKeeper.
     -s, --solr-url=<solrUrl>   Base Solr URL, which can be used to determine 
the zk-host if --zk-host is not known
     -u, --credentials=<credentials>
                                Credentials in the format username:password. 
Example: --credentials solr:SolrRocks
     -v, --verbose              Enable verbose mode.
     -V, --version              Print version information and exit.
     -z, --zk-host=<zkHost>     Zookeeper connection string; unnecessary if 
ZK_HOST is defined in solr.in.sh; otherwise, defaults to localhost:9983.
   
   For a full CLI reference, see 
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
   ```
   
   ```
   usage: bin/solr zk updateacls [-hvV] [-s=<solrUrl>] [-u=<credentials>] 
[-z=<zkHost>] <path>
   Update ACLs for a ZooKeeper znode.
         <path>                 The ZooKeeper znode path to update ACLs for.
     -h, --help                 Show this help message and exit.
     -s, --solr-url=<solrUrl>   Base Solr URL, which can be used to determine 
the zk-host if --zk-host is not known
     -u, --credentials=<credentials>
                                Credentials in the format username:password. 
Example: --credentials solr:SolrRocks
     -v, --verbose              Enable verbose mode.
     -V, --version              Print version information and exit.
     -z, --zk-host=<zkHost>     Zookeeper connection string; unnecessary if 
ZK_HOST is defined in solr.in.sh; otherwise, defaults to localhost:9983.
   
   For a full CLI reference, see 
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to