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
3 months agoCherry
3 months agoIrving
3 months agoKeva
3 months agoIrving
3 months agoHolley
3 months agoKrissy
4 months agoHolley
4 months agoChandra
4 months agoMel
5 months agoRemona
5 months agoAlyce
5 months agoHuey
5 months agoFelicidad
5 months agoBelen
5 months agoMarsha
6 months agoPaulina
6 months agoBrett
6 months agoTeddy
6 months agoGeorgene
6 months agoJacqueline
6 months agoVicky
7 months agoBerry
7 months agoTegan
7 months agoDyan
7 months agoYolande
7 months agoNina
8 months agoAnthony
8 months agoTheron
11 days agoAlbert
16 days agoGilma
2 months agoTayna
2 months agoEdgar
2 months ago