相关疑难解决方法(0)

pig - 如何在JOIN之后引用FOREACH中的列?

A = load 'a.txt' as (id, a1);
B = load 'b.txt as (id, b1);
C = join A by id, B by id;
D = foreach C generate id,a1,b1;
dump D;
Run Code Online (Sandbox Code Playgroud)

第4行失败: Invalid field projection. Projected field [id] does not exist in schema

我试图改为A.id,但最后一行失败了: ERROR 0: Scalar has more than one row in the output.

apache-pig

20
推荐指数
1
解决办法
3万
查看次数

错误1066:无法在Pig,Generic解决方案中打开别名的迭代器

Apache Pig中一个非常常见的错误消息是:

错误1066:无法打开别名的迭代器

有几个问题提到了这个错误,但没有一个提供处理它的通用方法.因此这个问题:

当你收到错误1066时该怎么办:无法打开别名的迭代器?

debugging apache-pig hortonworks-data-platform hdp

8
推荐指数
1
解决办法
9909
查看次数