【工具库】--kafka安装(179)

来源:互联网 发布:c语言数组比大小 编辑:程序博客网 时间:2024/06/05 16:57

kafka 安装配置

1 download kafka
To install Kafka on your machine, click on the below link −

https://www.apache.org/dyn/closer.cgi?path=/kafka/0.9.0.0/kafka_2.11-0.9.0.0.tgz
Now the latest version i.e., – kafka_2.11_0.9.0.0.tgz will be downloaded onto your machine.

2 Extract the tar file
Extract the tar file using the following command −

cdopt/ tar -zxf kafka_2.11.0.9.0.0 tar.gz
$ cd kafka_2.11.0.9.0.0
Now you have downloaded the latest version of Kafka on your machine.

3 Start Server
You can start the server by giving the following command −

$ bin/kafka-server-start.sh config/server.properties

After the server starts, you would see the below response on your screen −

$ bin/kafka-server-start.sh config/server.properties
[2016-01-02 15:37:30,410] INFO KafkaConfig values:
request.timeout.ms = 30000
log.roll.hours = 168
inter.broker.protocol.version = 0.9.0.X
log.preallocate = false
security.inter.broker.protocol = PLAINTEXT
…………………………………………….
…………………………………………….

4 - Stop the Server
After performing all the operations, you can stop the server using the following command −

$ bin/kafka-server-stop.sh config/server.properties
Now that we have already discussed the Kafka installation, we can learn how to perform basic operations on Kafka in the following.

0 0
原创粉丝点击