[中间件] kafka 安装启动

  1. 第一步:进入kafka官网

   按照自己的需求选择版本,我这里选择 最新版的 2.4.0

   http://archive.apache.org/dist/kafka/2.4.0/kafka_2.11-2.4.0.tgz

  2. 第二步:下载 wget http://archive.apache.org/dist/kafka/2.4.0/kafka_2.11-2.4.0.tgz

3. 第三步:下载好之后 进行解压 tar -xzvf kafka_2.11-2.4.0.gz

启动kafka
启动zookeeper
启动kafka 之前需要先启动zookeeper 否则会报错
启动命令:./bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
-daemon:表示以守护进程的方式启动。
启动 kafka
启动命令:./bin/kafka-server-start.sh -daemon config/server.properties

Bruce 是 Apache Kafka 的生产者守护进程,它简化了客户端发送消息到 Kafka ,无需关注后端的 Kafka 集群。Bruce 主要处理: Routing messages to the proper brokers, and spreading the load evenly across multiple partitions for a given topic Waiting for acknowledgements, and resending messages as necessary due to communication failures or Kafka-reported errors Buffering messages to handle transient load spikes and Kafka-related problems Tracking message discards when serious problems occur; Providing web-based discard reporting and status monitoring interfaces Batching and compressing messages in a configurable manner for improved performance Bruce runs on each individual host that communicates with Kafka, receiving messages from local clients over a UNIX domain datagram socket. Clients write messages to Bruce's socket in a simple binary format. Once a client has written a message, no further interaction with Bruce is required. From that point onward, Bruce takes full responsibility for reliable message delivery. Bruce serves as a single intake point for a Kafka cluster, receiving messages from diverse clients regardless of what programming language a client is written in. Client code is currently available in C, C , Java, Python, and PHP. Code contributions for clients in other programming languages are much appreciated. Technical details on how to send messages to Bruce are provided here. Bruce runs on Linux, and has been tested on CentOS versions 7 and 6.5, and Ubuntu versions 14.04.1 LTS and 13.10. Bruce requires at least version 0.8 of Kafka. 标签:Bruce
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值