Which one of the following Hive commands uses an HCatalog table named x?
A. SELECT * FROM org.apache.hcatalog.hive.HCatLoader('x');
B. SELECT * FROM x;
C. SELECT x.-FROM org.apache.hcatalog.hive.HCatLoader('x');
D. Hive commands cannot reference an HCatalog table
正解:A
質問 2:
Can you use MapReduce to perform a relational join on two large tables sharing a key? Assume that the two tables are formatted as comma-separated files in HDFS.
A. No, but it can be done with either Pig or Hive.
B. Yes, so long as both tables fit into memory.
C. Yes, but only if one of the tables fits into memory
D. No, MapReduce cannot perform relational operations.
E. Yes.
正解:E
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
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) ; ?
A. SequenceFileInputFormat
B. KeyValueFileInputFormat
C. SequenceFileAsTextInputFormat
D. BDBInputFormat
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
You've written a MapReduce job that will process 500 million input records and generated 500 million key-value pairs. The data is not uniformly distributed. Your MapReduce job will create a significant amount of intermediate data that it needs to transfer between mappers and reduces which is a potential bottleneck. A custom implementation of which interface is most likely to reduce the amount of intermediate data transferred across the network?
A. Combiner
B. OutputFormat
C. Writable
D. InputFormat
E. Partitioner
F. WritableComparable
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
Which one of the following statements describes a Pig bag. tuple, and map, respectively?
A. Unordered collection of maps, ordered collection of tuples, ordered set of key/value pairs
B. Ordered collection of maps, ordered collection of bags, and unordered set of key/value pairs
C. Unordered collection of tuples, ordered set of fields, set of key value pairs
D. Ordered set of fields, ordered collection of tuples, ordered collection of maps
正解:C
Hasegawa -
本書をしっかり熟読し基本的な知識を身に着けることが可能です。
身に着けた知識は、本書に付属するアプリでしっかりと反復演習を行うことで、HDPCD試験対策ができます。