“Kafka——集群安裝部署(自带Zookeeper)”的版本间的差异
来自CloudWiki
(创建页面,内容为“ kafka自带zookeeper: https://www.cnblogs.com/caoweixiong/p/11060533.html”) |
|||
第1行: | 第1行: | ||
+ | ==kafka简介== | ||
+ | kafka官网:http://kafka.apache.org/ | ||
+ | kafka下载页面:http://kafka.apache.org/downloads | ||
+ | kafka配置快速入门:http://kafka.apache.org/quickstart | ||
+ | |||
+ | 新版本的kafka自带有zookeeper,本篇文章记录使用自带zookeeper搭建kafka集群。 | ||
+ | |||
+ | ==环境准备== | ||
+ | kafka版本:kafka_2.11-2.3.1.tgz | ||
+ | |||
+ | 三台主机IP:192.168.128.130(master),192.168.128.131,192.168.128.132 | ||
+ | |||
+ | ==下载解压kafka== | ||
+ | ===解压kafka=== | ||
+ | 上传kafka安装包到slave1的/opt目录,解压缩 | ||
+ | |||
+ | tar -zxf kafka_2.11-2.3.1.tgz -C /usr/local/ | ||
+ | |||
+ | ===查看配置文件=== | ||
+ | |||
+ | [root@master ~]# cd /usr/local | ||
+ | |||
+ | [root@master local]# ls | ||
+ | |||
+ | <nowiki>apache-hive-1.2.1-bin hbase-1.3.6 scala-2.11.5 | ||
+ | bin include share | ||
+ | etc kafka_2.11-2.3.1 spark-2.4.0-bin-hadoop2.6 | ||
+ | flink-1.9.2 lib src | ||
+ | flume lib64 zookeeper-3.4.6 | ||
+ | games libexec | ||
+ | hadoop-2.6.5 sbin</nowiki> | ||
+ | |||
+ | [root@master local]# cd kafka_2.11-2.3.1/ | ||
+ | |||
+ | [root@master kafka_2.11-2.3.1]# ll config | ||
+ | |||
+ | <nowiki>total 68 | ||
+ | -rw-r--r--. 1 root root 906 Oct 18 2019 connect-console-sink.properties | ||
+ | -rw-r--r--. 1 root root 909 Oct 18 2019 connect-console-source.properties | ||
+ | -rw-r--r--. 1 root root 5321 Oct 18 2019 connect-distributed.properties | ||
+ | -rw-r--r--. 1 root root 883 Oct 18 2019 connect-file-sink.properties | ||
+ | -rw-r--r--. 1 root root 881 Oct 18 2019 connect-file-source.properties | ||
+ | -rw-r--r--. 1 root root 1552 Oct 18 2019 connect-log4j.properties | ||
+ | -rw-r--r--. 1 root root 2262 Oct 18 2019 connect-standalone.properties | ||
+ | -rw-r--r--. 1 root root 1221 Oct 18 2019 consumer.properties | ||
+ | -rw-r--r--. 1 root root 4727 Oct 18 2019 log4j.properties | ||
+ | -rw-r--r--. 1 root root 1925 Oct 18 2019 producer.properties | ||
+ | -rw-r--r--. 1 root root 6851 Oct 18 2019 server.properties | ||
+ | -rw-r--r--. 1 root root 1032 Oct 18 2019 tools-log4j.properties | ||
+ | -rw-r--r--. 1 root root 1169 Oct 18 2019 trogdor.conf | ||
+ | -rw-r--r--. 1 root root 1023 Oct 18 2019 zookeeper.properties</nowiki> | ||
+ | |||
+ | 其中server.properties 和 zookeeper.properties 分别对应kafka和zookeeper的配置文件 | ||
kafka自带zookeeper: https://www.cnblogs.com/caoweixiong/p/11060533.html | kafka自带zookeeper: https://www.cnblogs.com/caoweixiong/p/11060533.html |
2020年7月25日 (六) 02:57的版本
kafka简介
kafka官网:http://kafka.apache.org/
kafka下载页面:http://kafka.apache.org/downloads
kafka配置快速入门:http://kafka.apache.org/quickstart
新版本的kafka自带有zookeeper,本篇文章记录使用自带zookeeper搭建kafka集群。
环境准备
kafka版本:kafka_2.11-2.3.1.tgz
三台主机IP:192.168.128.130(master),192.168.128.131,192.168.128.132
下载解压kafka
解压kafka
上传kafka安装包到slave1的/opt目录,解压缩
tar -zxf kafka_2.11-2.3.1.tgz -C /usr/local/
查看配置文件
[root@master ~]# cd /usr/local
[root@master local]# ls
apache-hive-1.2.1-bin hbase-1.3.6 scala-2.11.5 bin include share etc kafka_2.11-2.3.1 spark-2.4.0-bin-hadoop2.6 flink-1.9.2 lib src flume lib64 zookeeper-3.4.6 games libexec hadoop-2.6.5 sbin
[root@master local]# cd kafka_2.11-2.3.1/
[root@master kafka_2.11-2.3.1]# ll config
total 68 -rw-r--r--. 1 root root 906 Oct 18 2019 connect-console-sink.properties -rw-r--r--. 1 root root 909 Oct 18 2019 connect-console-source.properties -rw-r--r--. 1 root root 5321 Oct 18 2019 connect-distributed.properties -rw-r--r--. 1 root root 883 Oct 18 2019 connect-file-sink.properties -rw-r--r--. 1 root root 881 Oct 18 2019 connect-file-source.properties -rw-r--r--. 1 root root 1552 Oct 18 2019 connect-log4j.properties -rw-r--r--. 1 root root 2262 Oct 18 2019 connect-standalone.properties -rw-r--r--. 1 root root 1221 Oct 18 2019 consumer.properties -rw-r--r--. 1 root root 4727 Oct 18 2019 log4j.properties -rw-r--r--. 1 root root 1925 Oct 18 2019 producer.properties -rw-r--r--. 1 root root 6851 Oct 18 2019 server.properties -rw-r--r--. 1 root root 1032 Oct 18 2019 tools-log4j.properties -rw-r--r--. 1 root root 1169 Oct 18 2019 trogdor.conf -rw-r--r--. 1 root root 1023 Oct 18 2019 zookeeper.properties
其中server.properties 和 zookeeper.properties 分别对应kafka和zookeeper的配置文件
kafka自带zookeeper: https://www.cnblogs.com/caoweixiong/p/11060533.html