rahulgoswami commented on PR #2593: URL: https://github.com/apache/solr/pull/2593#issuecomment-2266361235
Pulled in the latest changes on the branch SOLR-17359 and rebuilt. 1) zk downconfig has been fixed. upconfig worked for me the first time as well. 2) solr zk -help now says "-help is not a valid command!". I do see it listed in documentation though(https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html#zookeeper-operations). Do we want to support it for backward compatibility with the documentation ? `solr zk -h` works fine. 3) Executing a command incorrectly now lists the help for the command. Nice! 4) Commands that work fine for me: zk ls, zk upconfig, zk mkroot, zk mv 5) "solr zk cp" doesn't work. We have 4 cases: file/folder copy to/from zk **i)** File copy from zk to local drive ==> this is the only cp command that worked for me **ii)** Folder copy from zk to local drive fails with below error solr zk cp -r zk:/configs/techproducts "C:\Work\Git\command-testing" -z localhost:9983 **ERROR: Index 1 out of bounds for length 1** **iii)** File copy from local drive to zk fails . It doesn't print an error message but the command completes without copying anything (when I try to check via `solr zk ls`) **>solr zk cp "C:\Work\Git\command-testing\test-file.txt" zk:/uploads/data -z localhost:9983** Copying from 'C:\Work\Git\command-testing\test-file.txt' to 'zk:/uploads/data'. ZooKeeper at localhost:9983 WARN - 2024-08-02 22:39:04.304; org.apache.solr.common.cloud.SolrZkClient; Using default ZkCredentialsInjector. ZkCredentialsInjector is not secure, it creates an empty list of credentials which leads to 'OPEN_ACL_UNSAFE' ACLs to Zookeeper nodes WARN - 2024-08-02 22:39:04.471; org.apache.solr.common.cloud.SolrZkClient; Using default ZkACLProvider. DefaultZkACLProvider is not secure, it creates 'OPEN_ACL_UNSAFE' ACLs to Zookeeper nodes **iv)** Folder copy from local drive to zk fails. I created a znode "/uploads/data" using the `solr zk mkroot` command prior to running the below command. **>solr zk cp -r "C:\Work\Git\command-testing\conf\" zk:/uploads/data -z localhost:9983** Neither --zk-host or --solr-url parameters provided so assuming solr url is http://localhost:8983. **ERROR: Index 0 out of bounds for length 0** 6) `zk rm` works while trying to delete a file. Fails to delete a directory. **>solr zk rm -r /uploads/data -z localhost:9983** ERROR: Index 0 out of bounds for length 0 **>solr zk ls /uploads -z localhost:9983 ==> Command to show the znode "/uploads/data" exists** WARN - 2024-08-02 23:31:46.793; org.apache.solr.common.cloud.SolrZkClient; Using default ZkCredentialsInjector. ZkCredentialsInjector is not secure, it creates an empty list of credentials which leads to 'OPEN_ACL_UNSAFE' ACLs to Zookeeper nodes WARN - 2024-08-02 23:31:48.120; org.apache.solr.common.cloud.SolrZkClient; Using default ZkACLProvider. DefaultZkACLProvider is not secure, it creates 'OPEN_ACL_UNSAFE' ACLs to Zookeeper nodes **data** -- 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]
