Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-25025

Distcp In MoveTask may cause stats info lost

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Hive
    • Flags:
      Patch, Important

      Description

      after set  Run as end user instead of Hive user , when execute insert overwrite , In MoveTask ,if source byte > HIVE_EXEC_COPYFILE_MAXSIZE  and source file count> HIVE_EXEC_COPYFILE_MAXNUMFILES , HIve will use distcp method, it may cause tmp stats file lost. 

      example:

      set hive.exec.copyfile.maxsize=0;
      set hive.exec.copyfile.maxnumfiles=0;

      insert overwrite table abc_new select * from abc;

      select count(1) from abc_new ;

      select * from abc_new ;

      then the  count(1) result will be 0, but select * will display real data, because stats info lost.

       

        Attachments

        1. HIVE-25025.patch
          0.8 kB
          WangHualei

          Issue Links

            Activity

              People

              • Assignee:
                wanghualei WangHualei
                Reporter:
                wanghualei WangHualei
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 72h
                  72h
                  Remaining:
                  Remaining Estimate - 71h 50m
                  71h 50m
                  Logged:
                  Remaining Estimate - 71h 50m
                  10m