solr-zkutil
solr-zkutil copied to clipboard
Solr Cloud and ZooKeeper CLI
Environment issue where the command-line args are not properly forwarded. The environment use of /usr/bin/python may need to be changed or be platform specific.
**Pendulum** package seems to be broken (pip) not sure about pip3. Pendulum is used to calculate time-differences across time-zones. Make Pendulum optional, or replace it with another package.
Detect errors within Zookeeper. ``` parser = argparse.ArgumentParser(prog=__application__, description='report zk node statistics') parser.add_argument('-z', '--zookeeper', default=None, required=False, type=verify_zk, help='Zookeeper connection string - eg. "zk01.host.com:2181"') parser.add_argument('-i', '--serverid', default=None, required=False, type=int, help='Query the...
``` RUNNING: check_overseer_election ** () not enough arguments for format string - File "C:\Python27\lib\site-packages\solrzkutil\__init__.py", line 737, in health_check errors = check(zk_client) ; File "C:\Python27\lib\site-packages\solrzkutil\healthy.py", line 1191, in check_overseer_election errors.append("overseer leader...
ERROR RUNNING check_zookeeper_connectivity Traceback (most recent call last): File "C:\Python27\Scripts\solr-zkutil", line 13, in sys.exit(main(sys.argv)) File "C:\Python27\lib\site-packages\solrzkutil\__init__.py", line 1018, in main health_check(zookeepers=args['zookeepers']) File "C:\Python27\lib\site-packages\solrzkutil\__init__.py", line 742, in health_check if not errors:...
Even though we check to ensure a node exists capture the error because there are conditions in which it happens during iteration of files in a directory that are changing...
When you watch a znode that doesn't exist, the program can periodically check for the node, then begin a watch when / if it is created. We are essentially adding...
solr-zkutil watch /overseer_elect --env PILOT ``` ERROR:kazoo.recipe.watchers:'NoneType' object has no attribute 'decode' Traceback (most recent call last): File "C:\Python27\lib\site-packages\kazoo\recipe\watchers.py", line 161, in _log_func_exception result = self._func(data, stat, event) File "C:\Python27\lib\site-packages\solrzkutil\__init__.py",...
Create a new command ``collectionsapi`` that can generate, and optionally execute commands against one or all collections. Add 'meta' commands to remove dead replica's, etc. If a collection named is...
When admin commands are issued by default add-to, or replace session-ids with connection ips from "cons", so no internal translation is needed between sessions and ips. Also non-active sessions will...