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

Distcp In MoveTask may cause stats info lost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Hive
    • 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

              wanghualei WangHualei
              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 - 71.5h
                  71.5h
                  Logged:
                  Remaining Estimate - 71.5h
                  0.5h