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

Hive::loadPartitionInternal establishes HMS connection for every partition for external tables

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L2522

      boolean needRecycle = !tbl.isTemporary()
                        && ReplChangeManager.shouldEnableCm(Hive.get().getDatabase(tbl.getDbName()), tbl.getTTable());
      

      Hive.get() breaks the current connection with HMS. Due to this, for external table partition loads, it establishes HMS connection for partition.

      Attachments

        Issue Links

          Activity

            People

              rajesh.balamohan Rajesh Balamohan
              rajesh.balamohan Rajesh Balamohan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m