跳转至

seabox uninstall

seabox uninstall

卸载SeaboxMPP数据库服务

语法

``` bash seabox uninstall [OPTIONS]

Options: –force-clear-data clear data -h, –help show this help, then exit

其中Commands可为以下命令之一:

``` bash
  cluster  uninstall seabox cluster.
  host     uninstall seabox hosts.

描述

卸载SeaboxMPP数据库服务

  • 注意:如有注意事项,补充
选项

该命令支持选项说明如下:

Options

命令支持的选项

--force-clear-data
使用该选项时表示在卸载过程中同时删除数据
-h, --help
使用该选项时返回seabox uninstall命令的帮助信息
Commands

seabox uninstall支持的命令,包括以下:

cluster
卸载集群所在节点的SeaboxMPP数据库服务
host
卸载指定节点的SeaboxMPP数据库服务
注解

如有具体的使用限制及注意事项,在这部分列出。

  • 注1:集群卸载前,需要先执行seabox stop来停止集群。如只需卸载某个节点,则此节点需先停止且不可以是集群的角色

  • 注2: seabox uninstall命令要求使用SeaboxMPP数据库集群安装用户seabox,或root用户,且需通过以下命令设置正确的环境变量:

source $SDHOME/seaboxmpp_path.sh

其中,$SDHOME为安装SeaboxMPP数据库服务的主目录。

示例

以下是seabox uninstall --help的执行结果:

[seabox@mpp-test-1 bin]$ seabox uninstall --help
uninstall seabox service.

Usage: 
  seabox uninstall [OPTIONS]

Options:
  --force-clear-data  clear data
  -h, --help          show this help, then exit

Commands:
  cluster  uninstall seabox cluster.
  host     uninstall seabox hosts.

以下命令可卸载集群服务

[seabox@master_regress1 sdsql]$ seabox uninstall 
2022-07-07 10:33:25 CST [176377] seabox_install master_regress1:seabox INFO: read info from scdcs
2022-07-07 10:33:25 CST [176377] seabox_install master_regress1:seabox INFO: check scdcs active
2022-07-07 10:33:25 CST [176377] seabox_install master_regress1:seabox WARNING: connection detect host 172.25.0.2 port 2379 connect error
2022-07-07 10:33:25 CST [176377] seabox_install master_regress1:seabox INFO: cannot get infomation from scdcs. Will read scdcs dump file
2022-07-07 10:33:25 CST [176377] seabox_install master_regress1:seabox INFO: read info from scdcs dump file
2022-07-07 10:33:25 CST [176377] seabox_install master_regress1:seabox INFO: check cluster password access
2022-07-07 10:33:28 CST [176377] seabox_install master_regress1:seabox INFO: de-duplicate hostnames
2022-07-07 10:33:28 CST [176377] seabox_install master_regress1:seabox INFO: coordinator hostname: master_regress1
2022-07-07 10:33:28 CST [176377] seabox_install master_regress1:seabox INFO: uninstall cluster
2022-07-07 10:33:28 CST [176377] seabox_install master_regress1:seabox INFO: remove binary path
2022-07-07 10:33:30 CST [176377] seabox_install master_regress1:seabox INFO: success -- requested commands completed
相关命令