我写的是maven项目,pom文件为: 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="htt Read More
posted @ 2017-09-13 09:51
kwz
Views(2973)
Comments(0)
Diggs(0)
目标:sparkStreaming每2s中读取一次kafka中的数据,进行单词计数。 topic:topic1 broker list:192.168.1.126:9092,192.168.1.127:9092,192.168.1.128:9092 1、首先往一个topic中实时生产数据。 代码如下 Read More
posted @ 2017-09-13 09:37
kwz
Views(984)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号