第一次启动需指定--helper参数,后续再启动无需指定此参数 sh /opt/module/apache-doris-fe/bin/start_fe.sh --helper cdh192-150:19010 --daemon
ansible fe -m shell -a " sh /opt/module/apache-doris-fe/bin/stop_fe.sh " ansible fe -m shell -a " sh /opt/module/apache-doris-fe/bin/start_fe.sh --daemon "
1 2 3 4 5 6 7 8 9 10
mysql -h 127.0.0.1 -P9030 -uroot -p mysql> SHOW PROC '/frontends'\G ALTERSYSTEMADD FOLLOWER "cdh192-151:19010"; # ALTER SYSTEM DROP FOLLOWER "cdh192-151:19010"; ALTERSYSTEMADD OBSERVER "cdh192-152:19010"; # ALTER SYSTEM drop OBSERVER "cdh192-152:19010"; ALTERSYSTEMADD FOLLOWER "cdh192-153:19010"; ALTERSYSTEMADD FOLLOWER "cdh192-146.hadoop.xy:19010";
netstat -nap |grep 19010
be 部署
1 2
ansible be -m shell -a " sh /opt/module/apache-doris-be/bin/stop_be.sh " ansible be -m shell -a " sh /opt/module/apache-doris-be/bin/start_be.sh --daemon "
ansible be -m shell -a "sh /opt/module/apache-doris-be/bin/stop_be.sh " ansible be -m shell -a "sh /opt/module/apache-doris-be/bin/start_be.sh --daemon "
# ansible cdh-online -m copy -a "src=/opt/module/apache-doris-be-1.2.0-bin-x86_64.tar.xz dest=/opt/module/" ssh cdh192-150 cd /opt/module tar -xvf apache-doris-be-1.2.1-bin-x86_64.tar.xz tar -xvf apache-doris-fe-1.2.1-bin-x86_64.tar.xz tar -xvf apache-doris-dependencies-1.2.1-bin-x86_64.tar.xz
# 升级 BE 节点 cd /opt/module/apache-doris-be rm -rf lib.bak && mv lib lib.bak rm -rf bin.bak && mv bin bin.bak cp -r /opt/module/apache-doris-be-1.2.1-bin-x86_64/lib . cp -r /opt/module/apache-doris-be-1.2.1-bin-x86_64/bin . cp /opt/module/apache-doris-dependencies-1.2.1-bin-x86_64/java-udf-jar-with-dependencies.jar lib/ sh bin.bak/stop_be.sh sh bin/start_be.sh --daemon ps aux | grep doris_be
# 升级 FE 节点 cd /opt/module/apache-doris-fe rm -rf lib.bak && mv lib lib.bak rm -rf bin.bak && mv bin bin.bak cp -r /opt/module/apache-doris-1.2.1-hive_211-fe-x86_64/lib . cp -r /opt/module/apache-doris-fe-1.2.1-bin-x86_64/bin . sh bin.bak/stop_fe.sh sh bin/start_fe.sh --daemon ps aux | grep apache-doris-fe
新加节点
sh /opt/module/apache-doris-fe/bin/start_fe.sh --helper cdh192-151.hadoop.xy:19010 --daemon
正确的顺序:
在系统注册:ALTER SYSTEM ADD FOLLOWER “follower_host:edit_log_port”;