nerdexam
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)
  • A
    9% (3)
  • B
    16% (5)
  • C
    72% (23)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full CCD-410 Practice