Premium

Mapr (HP) Hadoop Developer Certification Questions and Answers (Dumps and Practice Questions)



Question : You need to create a job that does frequency analysis on input data. You will do this by writing a Mapper that uses TextInputFormat and splits each value (a line of
text from an input file) into individual characters. For each one of these characters, you will emit the character as a key and an InputWritable as the value. As this will
produce proportionally more intermediate data than input data, which two resources should you expect to be bottlenecks?

 : You need to create a job that does frequency analysis on input data. You will do this by writing a Mapper that uses TextInputFormat and splits each value (a line of
1. Processor and network I/O

2. Disk I/O and network I/O

3. Processor and RAM

4. Processor and disk I/O

Correct Answer : 2
Explanation:




Question : You use the hadoop fs -put command to write a MB file using and HDFS block size of MB . Just after this command has finished writing MB of this file, what
would another user see when trying to access this life?

 : You use the hadoop fs -put command to write a  MB file using and HDFS block size of  MB . Just after this command has finished writing  MB of this file, what
1. They would see Hadoop throw a ConcurrentFileAccessException when they try to access this file.

2. They would see the current state of the file, up to the last bit written by the command.

3. They would see the current of the file through the last completed block.

4. They would see no content until the whole file written and closed.

Correct Answer : 3
Explanation:






Question : Which statement is true
  : Which statement is true
1. Output of the reducer could be zero
2. Output of the reducer is written to the HDFS
3. In practice, the reducer usually emits a single key-value pair for each input key
4. All of the above



Correct Answer 4 :


Explanation: Reducer can either have zero output or more final key-value pairs. And whatever is the output it will be written to HDFS.

In Practice,the reducer usually emits a single key-value pair for each input key.

Refer HadoopExam.com Recorded Training Module : 1 and 3





Related Questions


Question : Select the correct flow by which MapReduce job process the data in MRv.

  : Select the correct flow by which MapReduce job process the data in MRv.
1. Input File > Mapper > Combiner (Optional) > shuffle > reducer >output file

2. Mapper > Input File > Combiner (Optional) > shuffle > reducer >output file

3. Input File > Mapper > shuffle > Combiner (Optional) > reducer >output file

4. Input File > Mapper > shuffle > reducer > Combiner (Optional) >output file


Question : If you have written a Mapper which has both Input key and Value as Text. Which of the following component you will us eto break entire text in the Individual fields.

  : If you have written a Mapper which has both Input key and Value as Text. Which  of the following component you will us eto break entire text in the Individual fields.
1. NameNode

2. TaskTracker

3. Application Master

4. StringTokenizer


Question : As you have following map() function of the Mapper

public void map(Text text, Text value, Content cnt) throws ....
cnt.write(new Text("Hadoop"), new Text("Exam"));

Whar is the new Text("Hadoop")


  : As you have following map() function of the Mapper
1. Key

2. Value

3. Represent to use MRv1 framework

4. Represent to use MRv2 framework


Question : In MRv Driver class , a new Job object is created, What else is true for Driver class ?

  :  In MRv Driver class , a new Job object is created, What else is true for Driver class ?
1. Always use ToolRunner class

2. Always provide the input file

3. It checks the command line syntex

4. Also sets values for the driver, mapper, and reducer classes used.


Question : What are the TWO main components of the YARN ResourceManager process? Choose answers
A. Job Tracker
B. Task Tracker
C. Scheduler
D. Applications Manager
  : What are the TWO main components of the YARN ResourceManager process? Choose  answers
1. A,B
2. B,C
3. C,D
4. A,D
5. B,D


Question : Given a directory of files with the following structure: line number, tab character, string:
Example:
1abialkjfjkaoasdfjksdlkjhqweroij
2kadfjhuwqounahagtnbvaswslmnbfgy
3kjfteiomndscxeqalkzhtopedkfsikj
You want to send each line as one record to your Mapper. Which InputFormat should you
use to complete the line: conf.setInputFormat (____.class) ; ?

  : Given a directory of files with the following structure: line number, tab character, string:
1. SequenceFileAsTextInputFormat
2. SequenceFileInputFormat
3. KeyValueFileInputFormat
4. BDBInputFormat