kafka
草吃兔
DAY DAY UP
展开
-
kafka命令
KAFKA:1.创建kafka topic/usr/local/kafka/bin/kafka-topics.sh --zookeeper yitaai-1:2181,yitaai-2:2181 --create --topic YITATODA1531818573 --partitions 64 --replication-factor 12.查看所有topic列表/usr/loc...原创 2019-04-04 17:02:18 · 155 阅读 · 0 评论 -
kafka集群部署
文章目录安装配置环境变量consumer.propertiesproducer.propertiesserverx.properies脚本安装官网地址:http://kafka.apache.org/downloads下载:举例 Binary downloads: Scala 2.11 - kafka_2.11-2.2.0.tgz (asc, sha512) 下载后解压...原创 2019-04-04 17:34:21 · 197 阅读 · 0 评论 -
kafka prodcer
目录结构:KafkaWriter.java说明:从本地文件读取数据写入kafka。package cn.com.java.kafka;import kafka.javaapi.producer.Producer;import kafka.producer.KeyedMessage;import kafka.producer.ProducerConfig;import java.i...原创 2019-04-09 16:04:02 · 230 阅读 · 0 评论