Commit 4df2f4d8 authored by 张彦钊's avatar 张彦钊

change test file

parent ee1676ba
......@@ -126,8 +126,8 @@ def group_redis(device_id,cid_list):
def group_write(rdd):
rdd.groupByKey().map(lambda x,y:group_redis(x,y))
return "good"
a = rdd.groupByKey().map(lambda x,y:x).collect()
return a
# Spark-Streaming-Kafka
sc = SparkContext(conf=SparkConf().setMaster("spark://nvwa01:7077").setAppName("filter").set("spark.io.compression.codec", "lzf"))
......
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