clickhouse集群搭建 三節點為例

2021-10-10 15:29:03 字數 1337 閱讀 6964

mkdir -p /opt/software/clickhouse/

cd /opt/software/clickhouse/

rpm -ivh clickhouse-server-common-19.3.6-1.el7.x86_64.rpm

rpm -ivh clickhouse-common-static-19.3.6-1.el7.x86_64.rpm

rpm -ivh clickhouse-server-19.3.6-1.el7.x86_64.rpm

rpm -ivh clickhouse-test-19.3.6-1.el7.x86_64.rpm

rpm -ivh clickhouse-client-19.3.6-1.el7.x86_64.rpm

systemctl stop firewalld   /

/停止firewall

systemctl disable firewalld /

/精緻firewall開機啟動

三個節點全部按照上面的知道部署單節點成功後開始配置部署集群需要的配置

<?xml version="1.0"?>

true

dataqin01

9000

true

dataqin02

9000

true

dataqin03

9000

-servers>

"1">

dataqin01

2182

"2">

dataqin02

2182

"3">

dataqin03

2182

dataqin03

::/0

10000000000

0.01

lz4

注意: 為什麼直接vi /etc/metrika.xml乙個新檔案,這裡很難去理解,有點莫名其妙,其實如果仔細看過clickhouse的配置檔案 /etc/clickhouse-server/config.xml就能明白,有那麼一段被注釋的配置說明:

配置乙個節點完成之後,將/etc/metrika.xml檔案scp到其他兩個節點並配置

dataqin01

在每個節點上啟動clickhouse客戶端,和單節點啟動完全一樣

上述內容完成,則clickhouse集群配置完成。

clickhouse集群模式搭建

1.檢查是否支援sse 4.2 grep q sse4 2 proc cpuinfo echo sse 4.2 supported echo sse 4.2 not supported 2.安裝依賴 sudo yum install y curl 4.檢視clickhouse可用安裝包,並安裝 yu...

獨家秘製的clickhouse集群搭建

1 安裝軟體 新增官方儲存庫 sudo yum install yum utils y sudo rpm import y sudo yum config manager add repo y安裝軟體包 sudo yum install clickhouse server clickhouse cl...

ClickHouse集群安裝

vm15 ubuntu18.04 3 192.168.44.128 192.168.44.129 192.168.44.130 apt install openjdk 8 jre headless apt install openjdk 8 jdk headless zookeeper是乙個分布式的...