Commit 34c260c6 authored by 王志伟's avatar 王志伟

repair

parent d092bbd5
...@@ -58,7 +58,7 @@ object Search_keywords_count { ...@@ -58,7 +58,7 @@ object Search_keywords_count {
val get_result =search_keywords.rdd.map((_, 1)).reduceByKey(_ + _) val get_result =search_keywords.rdd.map((_, 1)).reduceByKey(_ + _)
.sortBy(_._2,false) .sortBy(_._2,false)
val temp=get_result.collect() val temp=get_result.collect()
for (i <- 0 to temp.length ) { for (i <- 0 until temp.length ) {
println(temp(i)) 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