Cloudera
CCD-410 · Question #47
Given a directory of files with the following structure: line number, tab character, string: Example: 1 abialkjfjkaoasdfjksdlkjhqweroij 2 kadfjhuwqounahagtnbvaswslmnbfgy 3…
The correct answer is C. KeyValueFileInputFormat. See the full explanation below for the reasoning.
Question
Given a directory of files with the following structure: line number, tab character, string:
Example:
1 abialkjfjkaoasdfjksdlkjhqweroij 2 kadfjhuwqounahagtnbvaswslmnbfgy 3 kjfteiomndscxeqalkzhtopedkfsikj You want to send each line as one record to your Mapper. Which InputFormat should you use to complete the line: conf.setInputFormat (____.class) ; ?
Options
- ASequenceFileAsTextInputFormat
- BSequenceFileInputFormat
- CKeyValueFileInputFormat
- DBDBInputFormat
How the community answered
(32 responses)- A9% (3)
- B16% (5)
- C72% (23)
- D3% (1)
Community Discussion
No community discussion yet for this question.