部署clickhouse cluster(基于docker+zookeeper)
#安装zookeeper 虽然不是必要的,但clickhouse官方建议使用zookeeper部署集群,原因是ck的复制是用zk实现的: ZooKeeper is not a strict requirement: in some simple cases you can duplicate the data by writing it into all the replicas from your application code. This approach is not recommended, in this case ClickHouse won’t be able to guarantee data consistency on all replicas. This remains the responsibility of your application. 而且很重要的是,如果不安装zookeeper,那么副本表是无法实现的 1.准备三台机器(/etc/hosts): 192.168.11.100 ch100 192.168.11.101 ch101 192.168.11.102 ch102 2. 下载zookeeper3.5.6 注意一定要下载带有bin的版本,否则会 【报错】 Starting Zookeeper Cluster. Error: Could