yum install -y dialog gdb mcelog sysstat
yum update -y tzdata
echo 'export TZ="Asia/Shanghai"' >>/etc/profile
mkdir /data/home
关闭防火墙(所有节点上运行)
systemctl mask firewalld
systemctl disable firewalld
systemctl stop firewalld
vi /etc/selinux/config
SELINUX=disabled
setenforce 0
vim /etc/sysctl.conf
vm.swappiness = 1
echo 1 > /proc/sys/vm/swappiness
rpm -Uvh /data/home/vertica-10.0.0-2.x86_64.RHEL6.rpm
/opt/vertica/sbin/install_vertica --point-to-point --hosts 192.168.0.102 --rpm /data/home/vertica-10.1.0-2.x86_64.RHEL6.rpm --dba-user-home /data/home/dbadmin/ --dba-user verticadba --failure-threshold=HALT
sudo su - verticadba
mkdir .aws
cat <<- EOF > ~/.aws/credentials
[default]
aws_access_key_id = id
aws_secret_access_key = 密码
EOF
cat <<- EOF > ~/.aws/config
[default]
s3 =
addressing_style = virtual
region = cn-zhangjiakou
EOF
cat <<- EOF > /data/home/dbadmin/oss.conf
awsauth = ak:密码
awsendpoint = oss-cn-zhangjiakou-internal.aliyuncs.com
awsenablehttps = 0
s3enablevirtualaddressing = 1
EOF
查到要删除的
rpm -qa vertica
rpm -e 要删除的
rm -rf /opt/vertica
userdel verticadba
groupdel verticadba
rm -rf /data/home/dbadmin
admintools --debug -t revive_db -x /data/home/dbadmin/oss.conf --communal-storage-location=s3://addnewer-data-db-hb3/data_center -s 172.16.1.106,172.16.1.107,172.16.1.108,172.16.1.109,172.16.1.110 -d data_center
/opt/vertica/sbin/install_vertica --point-to-point --add-hosts 192.168.0.52, 192.168.0.54, 192.168.0.55, 192.168.0.56 --rpm /data/home/vertica-10.1.0-2.x86_64.RHEL6.rpm --dba-user-home /data/home/dbadmin/ --dba-user verticadba --failure-threshold=HALT
/opt/vertica/sbin/install_vertica --point-to-point --remove-hosts 192.168.0.56 --rpm vertica-10.0.0-2.x86_64.RHEL6.rpm --dba-user-home /data/home/dbadmin/ --dba-user verticadba
sudo su - verticadba #进入verticadba 用户
/opt/vertica/bin/admintools #进入菜单界面
上传license文件到/data/home/dbadmin #这里可以直接确定
选择 Configuration Menu
create Datebases 然后输入数据库名称和密码 之后一直确认就行
sudo su - verticadba
adminTools -t db_add_subcluster -c analytics_cluster -d data_center -p 'password' --is-secondary -s 172.16.1.107
adminTools -t db_add_node -d data_center -p 'password' -c analytics_subcluster -s 172.16.1.107
adminTools -t db_remove_node -d data_center -p 'change' -d data_center -s 172.16.1.107
SELECT REBALANCE_SHARDS('子集群');
SELECT subcluster_name, n.node_name, shard_name, subscription_state FROM v_catalog.nodes n LEFT JOIN v_catalog.node_subscriptions ns ON (n.node_name
= ns.node_name) ORDER BY 1,2,3;
想看企业模式-ENO请看