安裝包地址:
https://packagecloud.io/Altinity/clickhouse
無需下載安裝包,更新yum源即可!!
最後: yum install -y clickhouse-server clickhouse-client 即可完成安裝!!!
啓動!:
service clickhouse-server start
訪問客戶端
clickhouse-client
show databases;
配置之後如果使用DBevaver連接不上,原因是需要修改config.xml的listen,由127.0.0.1修改本地ip地址或者0.0.0.0
創建表報錯:clickhouse Can't create replicated table without ZooKeeper
原因:zookeeper配置錯了:
當你打開cluster表時候發現錯誤一般是沒有配置分片組!!
https://clickhouse.yandex/docs/en/operations/table_engines/replication/#replicatedmergetree
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
clickhouse集羣安裝:
https://clickhouse.yandex/tutorial.html