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?A . STORE A...
When is the earliest point at which the reduce method of a given Reducer can be called?
When is the earliest point at which the reduce method of a given Reducer can be called?A . As soon as at least one mapper has finished processing its input split.B . As soon as a mapper has emitted at least one record.C . Not until all mappers have finished...
Which statement best describes the ordering of these values?
In a MapReduce job, the reducer receives all values associated with same key. Which statement best describes the ordering of these values?A . The values are in sorted order.B . The values are arbitrarily ordered, and the ordering may vary from run to run of the same MapReduce job.C ....
Which describes how a client reads a file from HDFS?
Which describes how a client reads a file from HDFS?A . The client queries the NameNode for the block location(s). The NameNode returns the block location(s) to the client. The client reads the data directory off the DataNode(s).B . The client queries all DataNodes in parallel. The DataNode that contains...
Curl -1 -L “http://host:port/webhdfs/v1/foo/bar?
What does the following WebHDFS command do? Curl -1 -L “http://host:port/webhdfs/v1/foo/bar?op=OPEN”A . Make a directory /foo/barB . Read a file /foo/barC . List a directory /fooD . Delete a directory /foo/barView AnswerAnswer: B
Which one of the following Hive commands uses an HCatalog table named x?
Which one of the following Hive commands uses an HCatalog table named x?A . SELECT * FROM x;B . SELECT x.-FROM org.apache.hcatalog.hive.HCatLoader('x');C . SELECT * FROM org.apache.hcatalog.hive.HCatLoader('x');D . Hive commands cannot reference an HCatalog tableView AnswerAnswer: C
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...
What does calling the next () method return?
In the reducer, the MapReduce API provides you with an iterator over Writable values. What does calling the next () method return?A . It returns a reference to a different Writable object time.B . It returns a reference to a Writable object from an object pool.C . It returns a...
What does Pig provide to the overall Hadoop solution?
What does Pig provide to the overall Hadoop solution?A . Legacy language Integration with MapReduce frameworkB . Simple scripting language for writing MapReduce programsC . Database table and storage management servicesD . C++ interface to MapReduce and data warehouse infrastructureView AnswerAnswer: B
Determine which best describes when the reduce method is first called in a MapReduce job?
Determine which best describes when the reduce method is first called in a MapReduce job?A . Reducers start copying intermediate key-value pairs from each Mapper as soon as it has completed. The programmer can configure in the job what percentage of the intermediate data should arrive before the reduce method...