HADOOP-PR000007 無料問題集「Hortonworks-Certified-Apache-Hadoop-2.0-Developer(Pig and Hive Developer)」
You want to populate an associative array in order to perform a map-side join. You've decided to put this
information in a text file, place that file into the DistributedCache and read it in your Mapper before any
records are processed. Indentify which method in the Mapper you should use to implement code for
reading the file and populating the associative array?
information in a text file, place that file into the DistributedCache and read it in your Mapper before any
records are processed. Indentify which method in the Mapper you should use to implement code for
reading the file and populating the associative array?
正解:C
解答を投票する
You want to count the number of occurrences for each unique word in the supplied input data. You've
decided to implement this by having your mapper tokenize each word and emit a literal value 1, and then
have your reducer increment a counter for each literal 1 it receives. After successful implementing this, it
occurs to you that you could optimize this by specifying a combiner. Will you be able to reuse your
existing Reduces as your combiner in this case and why or why not?
decided to implement this by having your mapper tokenize each word and emit a literal value 1, and then
have your reducer increment a counter for each literal 1 it receives. After successful implementing this, it
occurs to you that you could optimize this by specifying a combiner. Will you be able to reuse your
existing Reduces as your combiner in this case and why or why not?
正解:E
解答を投票する