摘要: package two import java.util.HashMap import org.apache.kafka.clients.producer.{KafkaProducer, ProducerConfig, ProducerRecord} /** * Created by zhoucw 阅读全文
posted @ 2018-12-20 15:33 何国秀_xue 阅读(212) 评论(0) 推荐(0) 编辑
摘要: package myspark.kafka; /** * Created on 下午3:27. */import kafka.javaapi.producer.Producer;import kafka.producer.KeyedMessage;import kafka.producer.Prod 阅读全文
posted @ 2018-12-20 15:31 何国秀_xue 阅读(378) 评论(0) 推荐(0) 编辑
摘要: package two /** * Created by on 上午2:19. */import kafka.serializer.StringDecoder import org.apache.spark.streaming._import org.apache.spark.streaming.k 阅读全文
posted @ 2018-12-20 15:30 何国秀_xue 阅读(208) 评论(0) 推荐(0) 编辑
摘要: package two /** * Created by zhoucw on 上午2:11. */import java.util.HashMap import org.apache.kafka.clients.producer.{ProducerConfig, KafkaProducer, Pro 阅读全文
posted @ 2018-12-20 15:29 何国秀_xue 阅读(244) 评论(0) 推荐(0) 编辑
摘要: package kafkautils /** * Created on 上午12:48. * * High level comsumer api * * low level comsumer api(simple comsumer api) * * */import kafka.serializer 阅读全文
posted @ 2018-12-20 15:27 何国秀_xue 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: package kafkautils import kafka.ZookeeperHelper.clientimport kafka.common.TopicAndPartitionimport kafka.message.MessageAndMetadataimport kafka.seriali 阅读全文
posted @ 2018-12-20 15:25 何国秀_xue 阅读(629) 评论(0) 推荐(0) 编辑
摘要: package kafkautils import kafka.message.MessageAndMetadataimport kafka.serializer.StringDecoderimport kafka.utils.ZkUtilsimport kafkautils.KafkaZKMana 阅读全文
posted @ 2018-12-20 15:24 何国秀_xue 阅读(478) 评论(0) 推荐(0) 编辑