错误org.apache.pig.tools.grunt.Grunt - ERROR 1000

时间:2015-02-21 12:30:13

标签: hadoop apache-pig

我正在研究PIG编程,

grunt> dividends = load 'NYSE_dividends' as>> (exchange:chararray, symbol:chararray, date:chararray, dividend:float);

grunt> LIMIT dividends 10;

但我不确定为什么会收到此错误:

[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " <IDENTIFIER> "LIMIT "" at line 3, column 1.

我的数据链接是Data Link

请帮我找出问题!!!

1 个答案:

答案 0 :(得分:1)

原因是你没有分配输出关系。你能这样改变吗?

grunt> result = LIMIT dividends 10;
grunt> DUMP result;