跳转至

seabox install

seabox install

安装SeaboxMPP数据库服务到指定节点

语法

``` bash seabox install [OPTIONS]

Options: –gzip zip and copy over software to machines -h, –help show this help, then exit

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

``` bash
  cluster  install seabox cluster.
  host     install seabox hosts.

描述

安装SeaboxMPP数据库服务到指定节点,默认打tar包拷贝到指定节点,也可选择以gzip格式进行软件拷贝

  • 注意:seabox install 之前需要编辑SeaboxMPP初始化配置文件,参考SeaboxMPP数据库安装指导中集群安装及初始化章节
选项

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

Options

命令支持的选项

--gzip
使用该选项时表示以gzip格式进行软件拷贝
-h, --help
使用该选项时返回seabox install命令的帮助信息
Commands

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

cluster
安装SeaboxMPP数据库服务到集群所在节点
host
安装SeaboxMPP数据库服务到指定节点
注解

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

  • 注1:seabox install 等同于 seabox install cluster

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

source $SDHOME/seaboxmpp_path.sh

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

示例

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

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

Usage: 
  seabox install [OPTIONS]

Options:
  --gzip      zip and copy over software to machines
  -h, --help  show this help, then exit

Commands:
  cluster  install seabox cluster.
  host     install seabox hosts.

以下命令可安装集群服务

[seabox@master_regress1 sdsql]$ seabox install
2022-07-07 10:20:22 CST [171263] seabox_install master_regress1:seabox INFO: installation info:
link_name None
binary_path /home/seabox/sdsql
binary_dir_location /home/seabox
binary_dir_name sdsql
2022-07-07 10:20:22 CST [171263] seabox_install master_regress1:seabox INFO: check cluster password access
2022-07-07 10:20:25 CST [171263] seabox_install master_regress1:seabox INFO: de-duplicate hostnames
2022-07-07 10:20:25 CST [171263] seabox_install master_regress1:seabox INFO: coordinator hostname: master_regress1
2022-07-07 10:20:25 CST [171263] seabox_install master_regress1:seabox INFO: rm -f /home/seabox/sdsql.tar; rm -f /home/seabox/sdsql.tar.gz
2022-07-07 10:20:25 CST [171263] seabox_install master_regress1:seabox INFO: cd /home/seabox; tar cf sdsql.tar sdsql
2022-07-07 10:20:35 CST [171263] seabox_install master_regress1:seabox INFO: remote command: mkdir -p /home/seabox
2022-07-07 10:20:35 CST [171263] seabox_install master_regress1:seabox INFO: remote command: mkdir -p /home/seabox/seaboxAdminLogs
2022-07-07 10:20:36 CST [171263] seabox_install master_regress1:seabox INFO: remote command: rm -rf /home/seabox/sdsql
2022-07-07 10:20:36 CST [171263] seabox_install master_regress1:seabox INFO: scp software to remote location
2022-07-07 10:20:49 CST [171263] seabox_install master_regress1:seabox INFO: md5 check on remote location
2022-07-07 10:20:54 CST [171263] seabox_install master_regress1:seabox INFO: remote command: cd /home/seabox; tar xf sdsql.tar
2022-07-07 10:21:00 CST [171263] seabox_install master_regress1:seabox INFO: remote command: rm -f /home/seabox/sdsql.tar
2022-07-07 10:21:00 CST [171263] seabox_install master_regress1:seabox INFO: rm -f /home/seabox/sdsql.tar
2022-07-07 10:21:02 CST [171263] seabox_install master_regress1:seabox INFO: version string on coordinator: scssh version 21.1.0.1676
2022-07-07 10:21:02 CST [171263] seabox_install master_regress1:seabox INFO: remote command: . /home/seabox/sdsql/seaboxmpp_path.sh; /home/seabox/sdsql/bin/scssh --version
2022-07-07 10:21:04 CST [171263] seabox_install master_regress1:seabox INFO: success -- requested commands completed
相关命令