Apache-Hadoop-Developer 無料問題集「Hortonworks Hadoop 2.0 Certification exam for Pig and Hive Developer」
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?
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
解答を投票する