Huawei HCIP-Big Data Developer V2.0 H13-723_V2.0 Question # 27 Topic 3 Discussion

Huawei HCIP-Big Data Developer V2.0 H13-723_V2.0 Question # 27 Topic 3 Discussion

H13-723_V2.0 Exam Topic 3 Question 27 Discussion:
Question #: 27
Topic #: 3

existSparkIn application development, which of the following codes can correctly count words?


A.

rval counts = textFile.map(line => line.split("")).map(word =>(word,

1)).reduceByKey(+)


B.

val counts = textFile.flatMap(line => line.split(")).map(word =>(word,

1)).reduceByKey(+)


C.

vrval counts = textFie.map(line => line.split(")).map(word =>(word,

1)).groupByKey( )


D.

vrval counts = textFile.flatMap(line => line.split("")).map(word =>(word,

1)).groupByKey( )


Get Premium H13-723_V2.0 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.