查看cpu支持
cat /proc/cpuinfo 查看是否包含AVX2字样
官网下载对应版本
https://doris.apache.org/zh-CN/download/
解压
tar zxvf apache-doris-1.2.6-bin-x64.tar.xz -C /opt/
分发到每台机器
scp -r apache-doris-1.2.6-bin-x64 root@cnbjsjztpdn02:/opt/
修改be节点配置
/opt/apache-doris-1.2.6-bin-x64/be/conf/be.conf
修改端口(可选)避免端口冲突问题
修改priority_networks的值为本机ip,priority_networks = 10.11.14.32/24
修改fe节点配置
/opt/apache-doris-1.2.6-bin-x64/fe/conf/fe.conf
修改端口(可选)避免端口冲突问题
修改priority_networks的值为本机ip,priority_networks = 10.11.14.32/24
启动fe节点
sh /opt/apache-doris-1.2.6-bin-x64/fe/bin/start_fe.sh --daemon
启动be节点
sh /opt/apache-doris-1.2.6-bin-x64/be/bin/start_be.sh --daemon
sh /opt/apache-doris-1.2.6-bin-x64/extensions/apache_hdfs_broker/bin/start_broker.sh --daemon
建立连接
mysql -h fe_host -P query_port -uroot
fe_host为FE节点,query_port为在FE节点conf/fe.conf中设置的端口号
设置密码
set password = password(‘139976’);
添加be
alter system add backend “10.11.14.32:19050”; alter system add backend “10.11.14.33:19050”; 以此类推(修改为配置文件里对应的端口号)
添加broker
alter system add broker broker1 “10.11.14.32:8000”; alter system add broker broker2 “10.11.14.33:8000”; 以此类推(修改为配置文件里对应的端口号)
web端
http://10.11.14.32:18030/System?path=//backends (修改为配置文件里对应的端口号)