搭建基于clickhouse集群的zookeeper+kafka的数据分析架构

本文详细介绍了如何在Linux环境下搭建Zookeeper、Kafka和Clickhouse集群,用于数据分析。首先,安装Java环境,接着部署Zookeeper集群,配置并启动服务。然后,安装Clickhouse并进行集群配置。最后,安装Kafka,配置连接Zookeeper的参数,并启动服务。通过此架构,可以实现高效的数据分析和流转。
摘要由CSDN通过智能技术生成

1 安装java环境

yum search java

yum install java-1.8.0

2 安装zookeeper

mkdir /app/

cd /app/

wget https://dlcdn.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz

wget https://dlcdn.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz

上面的下载不了用下面的

tar -zxf apache-zookeeper-3.7.0-bin.tar.gz 解压

3 更改配置文件

cd /conf

cp zoo.sample.cfg zoo.cfg 复制配置文件

vim zoo.cfg 修改

# The number of milliseconds of each tick

tickTime=2000

# The number of ticks that the initial

# synchronization phase can take

initLimit=10

# The number of ticks that can pass between

# sending a request and getting an acknowledgement

syncLimit=5

# the directory where the snapshot is stored.

# do not use /tmp for storage, /tmp here is just

# example
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值