Hortonworks-Certified-Apache-Hadoop-2.0-Developer(Pig and Hive Developer) - HADOOP-PR000007 FREE EXAM DUMPS QUESTIONS & ANSWERS

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) ; ?
Correct Answer: A Vote an answer
You are developing a combiner that takes as input Text keys, IntWritable values, and emits Text keys,
IntWritable values. Which interface should your class implement?
Correct Answer: A Vote an answer
Which one of the following is NOT a valid Oozie action?
Correct Answer: B Vote an answer
In Hadoop 2.0, which TWO of the following processes work together to provide automatic failover of the
NameNode? Choose 2 answers
Correct Answer: B,C Vote an answer
You want to perform analysis on a large collection of images. You want to store this data in HDFS and
process it with MapReduce but you also want to give your data analysts and data scientists the ability to
process the data directly from HDFS with an interpreted high-level programming language like Python.
Which format should you use to store this data in HDFS?
Correct Answer: B Vote an answer
Which one of the following statements describes a Pig bag. tuple, and map, respectively?
Correct Answer: B Vote an answer
In the reducer, the MapReduce API provides you with an iterator over Writable values. What does calling
the next () method return?
Correct Answer: A Vote an answer
You have written a Mapper which invokes the following five calls to the OutputColletor.collect method:
output.collect (new Text ("Apple"), new Text ("Red") ) ;
output.collect (new Text ("Banana"), new Text ("Yellow") ) ;
output.collect (new Text ("Apple"), new Text ("Yellow") ) ;
output.collect (new Text ("Cherry"), new Text ("Red") ) ;
output.collect (new Text ("Apple"), new Text ("Green") ) ;
How many times will the Reducer's reduce method be invoked?
Correct Answer: B Vote an answer
You need to move a file titled "weblogs" into HDFS. When you try to copy the file, you can't. You know you
have ample space on your DataNodes. Which action should you take to relieve this situation and store
more files in HDFS?
Correct Answer: F Vote an answer
0
0
0
10