gds_uninstall
Background
gds_uninstall is a script tool used to uninstall GDS in batches.
Precautions
- Set environment variables before executing the script. For details, see "Importing Data > Using a Foreign Table to Import Data In Parallel > Installing, Configuring, and Starting GDS" in the Developer Guide.
- The script must be executed in the Python 3 environment.
- You must execute the gds_uninstall script as the root user.
- The --host and -U parameters must be contained.
- Currently, cross-platform uninstallation is not supported.
- The passwords of all nodes specified by the --host parameter must be the same to ensure that the script can be remotely uninstalled.
Syntax
gds_uninstall --host [/path/to/hostfile | ipaddr1,ipaddr2...] –U gds_user [--delete-user | --delete-user-and-group]
Parameter Description
- --host
IP addresses of the nodes to be uninstalled. The value can be a file name or a string:
- -U
- --delete-user
The user is deleted when GDS is uninstalled. The user to be deleted cannot be the root user.
- --delete-user-and-group
When GDS is uninstalled, the user and the user group to which the user belongs are deleted. You can delete a user group only when the user to be deleted is the only user of the user group. The user group cannot be the root user group.
- -V
- -h, --help
Example
Uninstall the GDS folders and environment variables installed and deployed by the gds_test user on nodes 192.168.1.100 and 192.168.1.101.
gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101
The user is deleted when GDS is uninstalled.
gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101 --delete-user
During the uninstallation, the user and user group are deleted at the same time.
gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101 --delete-user-and-group
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot