val words=Array("one","two","two","three","three","three")val wordPairsRDD=sc.parallelize(words).map(word=>(word,1))val wordCountsWithGroup=wordPairsRD
D: groupByKey().map(t=>(t._1,t._2.sum))上述语句的执行结果wordCountsWithGroup中包含的元素是? (“one”,1),(“two”,1),(“three”,1)(“one”,3),(“two”,2),(“three”,1)(“one”,1),(“two”,2),(“three”,1)(“one”,1),(“two”,2),(“three”,3)
发布时间:2024-05-07 19:51:46