Commit 3795d6a4 authored by 张彦钊's avatar 张彦钊

change test file

parent 171bcc18
...@@ -96,8 +96,8 @@ def write_redis(device_id,cid_list): ...@@ -96,8 +96,8 @@ def write_redis(device_id,cid_list):
def model(rdd): def model(rdd):
try: try:
rdd.filter(lambda x: maidian(x)).map(lambda x:get_data(x)).na.drop().\ rdd.filter(lambda x: maidian(x)).map(lambda x:get_data(x).na.drop().groupByKey())\
groupByKey().map(lambda x,y:write_redis(x,y)) .map(lambda x,y:write_redis(x,y))
except Exception as e: except Exception as e:
print("fail") print("fail")
print(e) print(e)
......
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