2026/2/23 16:08:25
网站建设
项目流程
怎么做网站的学校的大图,东莞网站设计教程,新站优化案例,设置网站首页Doris集群搭建
1、简介
搭建三节点存算一体Doris集群
FE、BE混合部署
版本号2.1.9
节点ip作用node310.1.0.21FE,BEnode410.1.0.18FE,BEnode410.1.0.19FE,BE
2、配置
配置每个节点Ip和Java环境
2.1、FE
# Licensed to the Apache Software Foundation (ASF) under one
…Doris集群搭建1、简介搭建三节点存算一体Doris集群FE、BE混合部署版本号2.1.9节点ip作用node310.1.0.21FE,BEnode410.1.0.18FE,BEnode410.1.0.19FE,BE2、配置配置每个节点Ip和Java环境2.1、FE# Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements. See the NOTICE file# distributed with this work for additional information# regarding copyright ownership. The ASF licenses this file# to you under the Apache License, Version 2.0 (the# License); you may not use this file except in compliance# with the License. You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing,# software distributed under the License is distributed on an# AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY# KIND, either express or implied. See the License for the# specific language governing permissions and limitations# under the License.####################################################################### The uppercase properties are read and exported by bin/start_fe.sh.## To see all Frontend configurations,## see fe/src/org/apache/doris/common/Config.java#####################################################################CUR_DATEdate%Y%m%d-%H%M%S# Log dirLOG_DIR${DORIS_HOME}/log# For jdk 8JAVA_OPTS-Xmx16384m -XX:UseMembar -XX:SurvivorRatio8 -XX:MaxTenuringThreshold7 -XX:PrintGCDateStamps -XX:PrintGCDetails -XX:UseConcMarkSweepGC -XX:UseParNewGC -XX:CMSClassUnloadingEnabled -XX:-CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction80 -XX:SoftRefLRUPolicyMSPerMB0 -Xloggc:$DORIS_HOME/log/fe.gc.log.$DATE# For jdk 17, this JAVA_OPTS will be used as default JVM optionsJAVA_OPTS_FOR_JDK_17-Dfile.encodingUTF-8 -Djavax.security.auth.useSubjectCredsOnlyfalse -Xmx8192m -Xms8192m -XX:UseG1GC -XX:HeapDumpOnOutOfMemoryError -XX:HeapDumpPath$LOG_DIR-Xlog:gc*,classhisto*trace:$LOG_DIR/fe.gc.log.$CUR_DATE:time,uptime:filecount10,filesize50M --add-opensjava.base/java.nioALL-UNNAMED --add-opens java.base/jdk.internal.refALL-UNNAMED --add-opens java.base/sun.nio.chALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxpALL-UNNAMED# Set your own JAVA_HOMEJAVA_HOME/opt/java#### the lowercase properties are read by main program.### store metadata, must be created before start FE.# Default value is ${DORIS_HOME}/doris-meta# meta_dir ${DORIS_HOME}/doris-meta# Default dirs to put jdbc drivers,default value is ${DORIS_HOME}/jdbc_drivers# jdbc_drivers_dir ${DORIS_HOME}/jdbc_drivershttp_port8030rpc_port9020query_port9030edit_log_port9010arrow_flight_sql_port-1# Choose one if there are more than one ip except loopback address.# Note that there should at most one ip match this list.# If no ip match this rule, will choose one randomly.# use CIDR format, e.g. 10.10.10.0/24 or IP format, e.g. 10.10.10.1# Default value is empty.priority_networks10.1.0.21# Advanced configurations# log_roll_size_mb 1024# INFO, WARN, ERROR, FATALsys_log_levelINFO# NORMAL, BRIEF, ASYNCsys_log_modeASYNC# sys_log_roll_num 10# sys_log_verbose_modules org.apache.doris# audit_log_dir $LOG_DIR# audit_log_modules slow_query, query# audit_log_roll_num 10# meta_delay_toleration_second 10# qe_max_connection 1024# qe_query_timeout_second 300# qe_slow_log_ms 50002.2、BE8040端口冲突Yarn占用修改为8041配置storage_root_path存储位置# Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements. See the NOTICE file# distributed with this work for additional information# regarding copyright ownership. The ASF licenses this file# to you under the Apache License, Version 2.0 (the# License); you may not use this file except in compliance# with the License. You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing,# software distributed under the License is distributed on an# AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY# KIND, either express or implied. See the License for the# specific language governing permissions and limitations# under the License.CUR_DATEdate%Y%m%d-%H%M%S# Log dirLOG_DIR${DORIS_HOME}/log/# For jdk 8JAVA_OPTS-Dfile.encodingUTF-8 -Xmx2048m -DlogPath$LOG_DIR/jni.log -Xloggc:$DORIS_HOME/log/be.gc.log.$CUR_DATE-Djavax.security.auth.useSubjectCredsOnlyfalse -Dsun.security.krb5.debugtrue -Dsun.java.commandDorisBE -XX:-CriticalJNINatives -Darrow.enable_null_check_for_getfalse# For jdk 9, this JAVA_OPTS will be used as default JVM optionsJAVA_OPTS_FOR_JDK_9-Dfile.encodingUTF-8 -Xmx2048m -DlogPath$DORIS_HOME/log/jni.log -Xlog:gc:$LOG_DIR/be.gc.log.$CUR_DATE-Djavax.security.auth.useSubjectCredsOnlyfalse -Dsun.security.krb5.debugtrue -Dsun.java.commandDorisBE -XX:-CriticalJNINatives --add-opensjava.base/java.nioALL-UNNAMED -Darrow.enable_null_check_for_getfalse# For jdk 17, this JAVA_OPTS will be used as default JVM optionsJAVA_OPTS_FOR_JDK_17-Dfile.encodingUTF-8 -Xmx2048m -DlogPath$LOG_DIR/jni.log -Xlog:gc:$LOG_DIR/be.gc.log.$CUR_DATE-Djavax.security.auth.useSubjectCredsOnlyfalse -Dsun.security.krb5.debugtrue -Dsun.java.commandDorisBE -XX:-CriticalJNINatives --add-opensjava.base/java.netALL-UNNAMED --add-opensjava.base/java.nioALL-UNNAMED -Darrow.enable_null_check_for_getfalse# since 1.2, the JAVA_HOME need to be set to run BE process.JAVA_HOME/opt/java# https://github.com/apache/doris/blob/master/docs/zh-CN/community/developer-guide/debug-tool.md#jemalloc-heap-profile# https://jemalloc.net/jemalloc.3.htmlJEMALLOC_CONFpercpu_arena:percpu,background_thread:true,metadata_thp:auto,muzzy_decay_ms:5000,dirty_decay_ms:5000,oversize_threshold:0,prof:true,prof_active:false,lg_prof_interval:-1JEMALLOC_PROF_PRFIXjemalloc_heap_profile_# ports for admin, web, heartbeat servicebe_port9060webserver_port8041heartbeat_service_port9050brpc_port8060arrow_flight_sql_port-1# HTTPS configuresenable_httpsfalse# path of certificate in PEM format.ssl_certificate_path$DORIS_HOME/conf/cert.pem# path of private key in PEM format.ssl_private_key_path$DORIS_HOME/conf/key.pem# Choose one if there are more than one ip except loopback address.# Note that there should at most one ip match this list.# If no ip match this rule, will choose one randomly.# use CIDR format, e.g. 10.10.10.0/24 or IP format, e.g. 10.10.10.1# Default value is empty.priority_networks10.1.0.21# data root path, separate by ;# You can specify the storage type for each root path, HDD (cold data) or SSD (hot data)# eg:storage_root_path/opt/doris2Data,medium:SSD# storage_root_path /home/disk1/doris,medium:SSD;/home/disk2/doris,medium:SSD;/home/disk2/doris,medium:HDD# /home/disk2/doris,medium:HDD(default)## you also can specify the properties by setting property:value, separate by ,# property medium has a higher priority than the extension of path## Default value is ${DORIS_HOME}/storage, you should create it by hand.# storage_root_path ${DORIS_HOME}/storage# Default dirs to put jdbc drivers,default value is ${DORIS_HOME}/jdbc_drivers# jdbc_drivers_dir ${DORIS_HOME}/jdbc_drivers# Advanced configurations# INFO, WARNING, ERROR, FATALsys_log_levelINFO# sys_log_roll_mode SIZE-MB-1024# sys_log_roll_num 10# sys_log_verbose_modules *# log_buffer_level -1# palo_cgroups# aws sdk log level# Off 0,# Fatal 1,# Error 2,# Warn 3,# Info 4,# Debug 5,# Trace 6# Default to turn off aws sdk log, because aws sdk errors that need to be cared will be output through Doris logsaws_log_level0## If you are not running in aws cloud, you can disable EC2 metadataAWS_EC2_METADATA_DISABLEDtrueALTER SYSTEM ADD FOLLOWER 10.1.0.18:9010; ALTER SYSTEM ADD FOLLOWER 10.1.0.19:9010;//填写主节点ip start_fe.sh --helper 10.1.0.21:9010 --daemon start_fe.sh --helper 10.1.0.21:9010 --daemonmysql -h 10.1.0.21 -P 9030 -urootALTERSYSTEMADDBACKEND10.1.0.21:9050;ALTERSYSTEMADDBACKEND10.1.0.18:9050;ALTERSYSTEMADDBACKEND10.1.0.19:9050;SETPASSWORDPASSWORD(zhenshi);3、启动FE3.1、单独建立元数据存储位置## Use a separate disk for FE metadatamkdir-pdoris_meta_created## Create FE metadata directory symlinkln-sdoris_meta_createddoris_meta_original3.2、启动bin/start_fe.sh --daemon3.3、部署FE Follower节点将node4、node5添加为Follower节点mysql-h10.1.0.21-P9030-u rootALTERSYSTEMADDFOLLOWER10.1.0.18:9010;ALTERSYSTEMADDFOLLOWER10.1.0.19:9010;3.4、启动FE Follower节点//填写主节点node3的ip start_fe.sh --helper10.1.0.21:9010 --daemon start_fe.sh --helper10.1.0.21:9010 --daemon4、启动BE4.1、添加BE节点ALTERSYSTEMADDBACKEND10.1.0.21:9050;ALTERSYSTEMADDBACKEND10.1.0.18:9050;ALTERSYSTEMADDBACKEND10.1.0.19:9050;4.2、启动BEbin/start_be.sh --daemon5、验证Mysql环境输入下列指令showfrontends \Gshowbackends \GWeb环境可打卡以下网址Web UI: http://10.1.0.21:8030监控指标: http://10.1.0.21:8041/metrics