linux上安装kafka商业版本confluent详细步骤

08-05 17:18:08   来源:shikezhi   评论: 点击:

通过本文你将了解到如何在Linux(Centos)上安装Kafka,内容具体如下:
 
下载地址:
 
目录说明:
confluent-3.0.0/bin/        # Driver scripts for starting/stopping services
confluent-3.0.0/etc/        # Configuration files
confluent-3.0.0/share/java/ # Jars
参考文档:http://docs.confluent.io/3.0.0/control-center/docs/quickstart.html
 
单机模式启动笔记
 
1.启动zookeeper
 
./bin/zookeeper-server-start ./etc/kafka/zookeeper.properties
2.启动kafka
./bin/kafka-server-start ./etc/kafka/server.properties
3.启动schema注册服务(可选)
./bin/schema-registry-start ./etc/schema-registry/schema-registry.properties
4.启动控制中心(可选)
  4.1.创建连接器的临时配置文件并启动连接器
cp etc/schema-registry/connect-avro-distributed.properties /tmp/connect-distributed.properties
echo "" >> /tmp/connect-distributed.properties
cat <<EOF >> /tmp/connect-distributed.propertiesconsumer.interceptor.classes=io.confluent.monitoring.clients.interceptor.MonitoringConsumerInterceptorproducer.interceptor.classes=io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptorEOF
./bin/connect-distributed /tmp/connect-distributed.properties
4.2.床架控制中心临时配置文件并启动控制中心
cp etc/confluent-control-center/control-center.properties /tmp/control-center.properties
cat <<EOF >> /tmp/control-center.propertiesconfluent.controlcenter.internal.topics.partitions=1confluent.controlcenter.internal.topics.replication=1confluent.monitoring.interceptor.topic.partitions=1confluent.monitoring.interceptor.topic.replication=1EOF
 
./bin/control-center-start /tmp/control-center.properties
 5.使用浏览器访问控制中心
http://localhost:9021/


其他信息:
 
使用zookeeper查看broker信息
$./bin/zookeeper-shell localhost
ls /  //查看所有节点
ls /brokers //查看所有broker
ls /brokers/ids //查看所有broker id

推荐内容:


kafka图形管理工具kafka-manager安装详解

Linux上安装Kafka WEB管理工具Kafka-Web-Console-安装步骤

相关热词搜索:linux kafka confluent

上一篇:confluent(kafka)如何彻底删除topic,kafka删除topic详细步骤 下一篇:最后一页
分享到: 收藏