FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask

4108 단어 HIVE
  • 실행 코드
  • LOAD DATA LOCAL INPATH '/data/L.D.Xiao/allmac.txt' OVERWRITE INTO TABLE tag_model.abtesttable PARTITION (p_log_date='2017-01-01');
  • 오류 보고
  • Failed with exception Wrong file format. Please check the file's format.
    FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask
  • 이유
  • hive> show create table abtesttable;
    CREATE  TABLE `abtesttable`(
      `mac` string, 
      `type` string)
    COMMENT 'ABTest mac list of the recommend system'
    PARTITIONED BY ( 
      `p_log_date` string)
    ROW FORMAT DELIMITED 
      FIELDS TERMINATED BY '\t' 
    STORED AS INPUTFORMAT 
      'org.apache.hadoop.hive.ql.io.RCFileInputFormat' 
    OUTPUTFORMAT 
      'org.apache.hadoop.hive.ql.io.RCFileOutputFormat'
    LOCATION
     'hdfs://hadoop03.chcloud.com:8020/warehouse/tag_model.db/abtesttable'
    TBLPROPERTIES (
      'transient_lastDdlTime'='1482994280')
  • 해결 방법
  • CREATE  TABLE `abtesttable_test`(
      `mac` string, 
      `type` string)
    COMMENT 'ABTest mac list of CHiQ3 recommend system'
    PARTITIONED BY ( 
      `p_log_date` string)
    ROW FORMAT DELIMITED 
      FIELDS TERMINATED BY '\t' 
    STORED AS textfile;
    
     LOAD DATA LOCAL INPATH '/data/xinting.xiao/allmac.txt' OVERWRITE INTO TABLE tag_model.abtesttable_test PARTITION (p_log_date='2017-01-01');
  • 주의
  • insert overwrite table tag_model.abtesttable_test partition (p_log_date) select * from tag_model.abtesttable;
    (  :
    insert into table tag_model.abtesttable_test partition (p_log_date) select * from tag_model.abtesttable;FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
    )

    좋은 웹페이지 즐겨찾기