Redis Cluster Resharding Error: 'Invalid arguments' Solution
The error message 'Invalid arguments: you need to pass either a valid address (ie. 120.0.0.1:7000) or space separated IP and port (ie. 120.0.0.1 7000)' indicates an issue with the format of your IP address and port in the 'redis-cli --cluster reshard' command.
Instead of using a colon (':') to separate the IP address and port, you should use a space. Here's the corrected command:
redis-cli --cluster reshard 10.0.0.17 8000 –yes --cluster-from all --cluster-to 7295b15a3de2f6a847baa1de5bab08b62895a65a --cluster-slots 4096
By separating the IP address and port with a space, the command will correctly interpret the arguments and proceed with the resharding operation.
原文地址: https://www.cveoy.top/t/topic/pkmP 著作权归作者所有。请勿转载和采集!