Commit cf30ea19 authored by 王志伟's avatar 王志伟

repair

parent 2d747e5a
......@@ -54,8 +54,11 @@ object Search_keywords_count {
""".stripMargin
)
val get_result =search_keywords.rdd.map((_, 1)).reduceByKey(_ + _)
.sortBy(_._2,false).repartition(1).saveAsTextFile("/srv/apps/ffm-baseline/eda/feededa/search_keywords.txt")
.sortBy(_._2,true)
val temp=get_result.take(10)
for (i <- 0 to 9) {
println(temp(i))
}
}
......
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