在pig中执行dump命令时出错

q7solyqu  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(506)
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
p8h8hvxi

p8h8hvxi1#

试着把你的sample.txt文件复制到主文件夹中。它可能会帮助你清楚地进入hadoop中的pig,或者更好地做一件事
在本地文件系统中运行pig
pig-x本地

相关问题