問題1
Examine the following Hive statements:

Assuming the statements above execute successfully, which one of the following statements is true?
Examine the following Hive statements:

Assuming the statements above execute successfully, which one of the following statements is true?
正確答案: C
問題2
In a large MapReduce job with m mappers and n reducers, how many distinct copy operations will there
be in the sort/shuffle phase?
In a large MapReduce job with m mappers and n reducers, how many distinct copy operations will there
be in the sort/shuffle phase?
正確答案: E
問題3
Review the following data and Pig code.
M,38,95111 F,29,95060 F,45,95192 M,62,95102 F,56,95102
A = LOAD 'data' USING PigStorage('.') as (gender:Chararray, age:int,
zlp:chararray);
B = FOREACH A GENERATE age;
Which one of the following commands would save the results of B to a folder in hdfs named myoutput?
Review the following data and Pig code.
M,38,95111 F,29,95060 F,45,95192 M,62,95102 F,56,95102
A = LOAD 'data' USING PigStorage('.') as (gender:Chararray, age:int,
zlp:chararray);
B = FOREACH A GENERATE age;
Which one of the following commands would save the results of B to a folder in hdfs named myoutput?
正確答案: C
問題4
To process input key-value pairs, your mapper needs to lead a 512 MB data file in memory. What is the
best way to accomplish this?
To process input key-value pairs, your mapper needs to lead a 512 MB data file in memory. What is the
best way to accomplish this?
正確答案: D
問題5
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 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?
正確答案: A
問題6
When can a reduce class also serve as a combiner without affecting the output of a MapReduce program?
When can a reduce class also serve as a combiner without affecting the output of a MapReduce program?
正確答案: A
問題7
Given the following Hive command:
INSERT OVERWRITE TABLE mytable SELECT * FROM myothertable;
Which one of the following statements is true?
Given the following Hive command:
INSERT OVERWRITE TABLE mytable SELECT * FROM myothertable;
Which one of the following statements is true?
正確答案: A
問題8
Which TWO of the following statements are true regarding Hive? Choose 2 answers
Which TWO of the following statements are true regarding Hive? Choose 2 answers
正確答案: B,D
問題9
You need to run the same job many times with minor variations. Rather than hardcoding all job
configuration options in your drive code, you've decided to have your Driver subclass
org.apache.hadoop.conf.Configured and implement the org.apache.hadoop.util.Tool interface.
Indentify which invocation correctly passes.mapred.job.name with a value of Example to Hadoop?
You need to run the same job many times with minor variations. Rather than hardcoding all job
configuration options in your drive code, you've decided to have your Driver subclass
org.apache.hadoop.conf.Configured and implement the org.apache.hadoop.util.Tool interface.
Indentify which invocation correctly passes.mapred.job.name with a value of Example to Hadoop?
正確答案: A
問題10
Which one of the following files is required in every Oozie Workflow application?
Which one of the following files is required in every Oozie Workflow application?
正確答案: D