Commit b1a174bf authored by 张彦钊's avatar 张彦钊

change test file

parent 90fcaaab
......@@ -142,6 +142,7 @@ kafkaParams = {"metadata.broker.list": "172.16.44.25:9092,172.16.44.31:9092,172.
stream = KafkaUtils.createDirectStream(ssc, ["gm-maidian-data"], kafkaParams)
transformstream = stream.transform(lambda x:model(x)).foreachRDD(group_write)
transformstream.pprint()
# transformstream.pprint()
print(transformstream)
ssc.start()
ssc.awaitTermination()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment