1

$ pig -z tez grunt> emp = LOAD '/emp.csv, /tmp/emp/part-m-00000' using PigStorage(',') as (id:int, name:chararray, disg:chararray, sal:长, loc:chararray); 2015-12-16 21:30:21,706 [main] INFO org.apache.hadoop.conf.Configuration.deprecation - fs.default.name 已弃用。相反,使用 fs.defaultFS grunt> dump emp;

失败的!

DAG PigLatin:DefaultJobName-0_scope-8:
       ApplicationId: null                                                                                                
  TotalLaunchedTasks: -1                                                                                                  
       FileBytesRead: -1                                                                                                  
    FileBytesWritten: -1                                                                                                  
       HdfsBytesRead: 0                                                                                                   
    HdfsBytesWritten: 0                                                                                                   

输入:

输出:

2015-12-16 21:31:00,745 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1066: Unable to open iterator for alias emp
Details at logfile: /tmp/pig-err.log
4

0 回答 0