【发布时间】:2015-02-04 14:43:21
【问题描述】:
我有这样格式的记录:
{(Larry Page),23,M}
{(Suman Dey),22,M}
{(Palani Pratap),25,M}
我正在尝试使用这个LOAD 记录:
records = LOAD '~/Documents/PigBag.txt' AS (details:BAG{name:tuple(fullname:chararray),age:int,gender:chararray});
但我收到此错误:
2015-02-04 20:09:41,556 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 7, column 101> mismatched input ',' expecting RIGHT_CURLY
请指教。
【问题讨论】:
标签: hadoop mapreduce apache-pig bigdata