gpt4 book ai didi

hadoop - pig FILTER ERROR 1000 : Error during parsing. 遇到

转载 作者:可可西里 更新时间:2023-11-01 16:35:53 31 4
gpt4 key购买 nike

这个脚本运行良好

data1 = LOAD '/user/maria_dev/ml-100k/test/u3.data' AS (usesrID:int, movieID:int, rating:int, ratingTime:int);
DUMP data1;

输出是 enter image description here

当我通过错误使用 FILTER 然后 PIG

data1 = LOAD '/user/maria_dev/ml-100k/test/u3.data' AS (usesrID:int, movieID:int, rating:int, ratingTime:int);
filterRowData1=filter data1 by (int)movieID == 556;
DUMP filterRowData1;

错误截图 enter image description here错误详情:

2018-10-20 23:20:24,653 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " "filterRowData1=filter "" at line 2, column 1.

我也试过

data1 = LOAD '/user/maria_dev/ml-100k/test/u3.data' AS (usesrID:int, movieID:int, rating:int, ratingTime:int);
filterRowData1=filter data1 by movieID == 556; (i have tried: '556'; but no luck)
DUMP filterRowData1;

最佳答案

filterRowData1 = filter data1 by movieID == 556;

别名和查询之间应该有空格。

关于hadoop - pig FILTER ERROR 1000 : Error during parsing. 遇到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52933281/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com