在pig脚本中声明错误

时间:2015-12-13 06:47:33

标签: hadoop compiler-errors apache-pig

%declare SOURCEPATH '/user/training/us_records/us-500.csv'  
%declare STOREPATH '/user/training/us_records/us_result.csv'  
table_data = LOAD '/user/training/us_records/us-500.csv' USING     PigStorage(',')  
AS(firstname :CHARARRAY,
lastname :CHARARRAY,
company :CHARARRAY,
address :CHARARRAY,
city :CHARARRAY,
country :CHARARRAY,
state :CHARARRAY,
zip :INT,
phone1: INT,
phone2 :INT,
email :CHARARRAY,
web :CHARARRAY);  
people_sample = GROUP table_data BY (country,state);  
pss = SAMPLE people_sample 0.01;  
STORE pss INTO '$STOREPATH';

结果:     消息:org.apache.pig.backend.executionengine.ExecException:错误2118:输入路径不存在:file:/user/training/us_records/us-500.csv

0 个答案:

没有答案