grunt> a = load '/cleartrip/prodqueue_cleartrip-quick-Nov05th14-morning.txt' USING PigStorage('\t') AS
>> (col0:chararray, col1:chararray, col2:chararray, col3:chararray, col4:chararray, col5:chararray, col6:chararray, col7:chararray);
grunt> b = limit a 10;
grunt> dump b;
Input(s):
Failed to read data from "/cleartrip/prodqueue_cleartrip-quick-Nov05th14-morning.txt"
Output(s):
Counters:
Total records written : 0
Total bytes written : 0
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
null -> null,
null
1条答案
按热度按时间p8h8hvxi1#
试着把你的sample.txt文件复制到主文件夹中。它可能会帮助你清楚地进入hadoop中的pig,或者更好地做一件事
在本地文件系统中运行pig
pig-x本地