Commit 2d747e5a authored by 王志伟's avatar 王志伟

repair bug

parent 49529100
......@@ -53,7 +53,7 @@ object Search_keywords_count {
|and partition_date ='${partition_date}'
""".stripMargin
)
val get_result =search_keywords.rdd.flatMap(x=>x).map((_, 1)).reduceByKey(_ + _)
val get_result =search_keywords.rdd.map((_, 1)).reduceByKey(_ + _)
.sortBy(_._2,false).repartition(1).saveAsTextFile("/srv/apps/ffm-baseline/eda/feededa/search_keywords.txt")
......
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