随笔分类 -  kafka

摘要:package com.day16import com.day15.ConnectionPoolUtilimport org.apache.spark.streaming.dstream.{DStream, ReceiverInputDStream}import org.apache.spark.s 阅读全文
posted @ 2019-03-04 22:23 VIP8cnbl 阅读(286) 评论(0) 推荐(0)
摘要:package com.day16import kafka.common.TopicAndPartitionimport kafka.message.MessageAndMetadataimport kafka.serializer.StringDecoderimport kafka.utils.{ 阅读全文
posted @ 2019-03-04 22:16 VIP8cnbl 阅读(217) 评论(0) 推荐(0)
摘要:启动 [root@node1 kafka]# ./bin/kafka-server-start.sh -daemon config/server.properties 创建主题 ./bin/kafka-topics.sh --create --zookeeper 192.168.23.101:218 阅读全文
posted @ 2019-02-28 22:05 VIP8cnbl 阅读(127) 评论(0) 推荐(0)
摘要:在没有配置kafka 删除属性的情况下 使用删除主题命令 ./bin/kafka-topics.sh --delete --zookeeper 192.168.28.131:2181,192.168.28.131:2182,192.168.28.131:2183 --topic test之后对当前主 阅读全文
posted @ 2019-02-28 22:04 VIP8cnbl
摘要:常用命令 1.新建主题 ./bin/kafka-topics.sh --create --zookeeper 192.168.28.131:2181,192.168.28.131:2182,192.168.28.131:2183 --replication-factor 3 --partitions 阅读全文
posted @ 2019-02-28 22:02 VIP8cnbl