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

Hive Cann't drop table in different hdfs clusters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5
    • 2.3.3
    • Metastore
    • None
    • change drop function from default fs to real fs
    • Patch

    Description

      Hive Cann't drop table in different hdfs clusters

      org.apache.hadoop.hive.metastore.HiveMetaStore

      in method

      checkTrashPurgeCombination()

      ShimLoader.getHadoopShims().createHdfsEncryptionShim(FileSystem.get(hiveConf), hiveConf);

       

      should be

      ShimLoader.getHadoopShims().createHdfsEncryptionShim(wh.getFs(pathToData), hiveConf);

       

      Because you want to delete the target fs data, not the default fs data

      Attachments

        1. HIVE-21873.branch-2.patch
          1.0 kB
          Deng ZiWu

        Activity

          People

            Unassigned Unassigned
            ico01 Deng ZiWu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: