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 INTO 'myoutput' USING PigStorage(',');
B . DUMP B using PigStorage('myoutput');
C . STORE B INTO 'myoutput';
D . DUMP B INTO 'myoutput';

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments