ApachePig—通过对join的结果进行演示,我得到了完美的结果,但是dump没有对相同的结果进行处理

7qhs6swi  于 2021-06-24  发布在  Pig
关注(0)|答案(0)|浏览(205)

我使用以下代码行:

student = load 'test/Pig/student' using PigStorage(' ') as (name:chararray,roll:int);

result = load 'test/Pig/results' using PigStorage('\t') as (id:int,status:chararray);

passroll = FILTER result by status == 'pass';

 store passroll into 'test/Pig/passroll';

pass = load 'test/Pig/passroll/part-m-00000' using PigStorage(',') as (id:int,status:chararray);

 stupass = JOIN pass by id, student by roll;

studentname = FOREACH stupass GENERATE student::name;

举例说明 studentname 是给成绩优秀的学生命名的有及格的。
但是倒垃圾 studentname 正在发出警告 ACCESSING_NON_EXISTENT_FI ELD 19 time(s) .

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题