Huawei H13-723_V2.0 Exam - Topic 6 Question 69 Discussion
existSpark, assuminglinesIs anDStreamObject, which of the following statements can periodically count the number of words on this stream?
C) lines.flatMap(_.split??)).map(word=>(word,1)).reduceByKey(_+_).print ( )
A) lines.flatMap(_.split??)).map(word=>(word,1)).reduce(_+_).print ( )
B) lines.flatMap(_.split??)).map(word=>(word,word.length())).reduceByKey(_+_).print ( )
D) lines.flatMap(_.split??)).flatmap(word=>(word,1)).groupByKey(_+_).print ( )
Carey
5 months agoCherry
5 months agoIrving
5 months agoKeva
6 months agoIrving
6 months agoHolley
6 months agoKrissy
6 months agoHolley
6 months agoChandra
6 months agoMel
7 months agoRemona
7 months agoAlyce
7 months agoHuey
8 months agoFelicidad
8 months agoBelen
8 months agoMarsha
8 months agoPaulina
8 months agoBrett
8 months agoTeddy
9 months agoGeorgene
9 months agoJacqueline
9 months agoVicky
9 months agoBerry
9 months agoTegan
9 months agoDyan
10 months agoYolande
10 months agoNina
10 months agoAnthony
10 months agoTheron
3 months agoAlbert
3 months agoGilma
4 months agoTayna
5 months agoEdgar
5 months ago