nerdexam
Huawei

H13-723_V2.0 · Question #88

In the MapReduce development framework, what is the function of the InputFormat class?

The correct answer is D. Split the input data into individual splits, and further split the split into <key, value> pairs, which. InputFormat is the entry point for all data entering a MapReduce job: it performs two distinct jobs - splitting the raw input into logical splits (chunks assigned to individual mappers), and then parsing each split into <key, value> pairs that the Mapper actually receives…

Batch Processing Development (MapReduce, Spark Core, Hive)

Question

In the MapReduce development framework, what is the function of the InputFormat class?

Options

  • ACombine key-value pairs with the same key value in the result of the map phase
  • BCombine the results of all map stages to get the final result
  • CSort and merge the results of the map stage
  • DSplit the input data into individual splits, and further split the split into <key, value> pairs, which

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    9% (3)
  • D
    85% (28)

Explanation

InputFormat is the entry point for all data entering a MapReduce job: it performs two distinct jobs - splitting the raw input into logical splits (chunks assigned to individual mappers), and then parsing each split into <key, value> pairs that the Mapper actually receives, making D correct.

  • A is wrong because combining key-value pairs with the same key is the job of the Combiner (a mini-reducer that runs locally after the map phase).
  • B is wrong because combining all map results into a final output is the job of the Reducer, not InputFormat.
  • C is wrong because sorting and merging map output is handled by the Shuffle and Sort phase (also called the partitioning/merge step between map and reduce).

Memory tip: Think of InputFormat as the "door and knife" - it opens the data and cuts it into pieces (splits), then slices each piece further into <key, value> morsels the Mapper can digest. Everything after that is someone else's job.

Topics

#MapReduce#InputFormat#Data splitting#Key-value pairs

Community Discussion

No community discussion yet for this question.

Full H13-723_V2.0 Practice