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
答案 0 :(得分:0)
尝试将您的Sample.txt复制到主文件夹..它可能会帮助您清楚 然后进入Hadoop的猪 或者做得更好
在本地文件系统中运行Pig
Pig -x local