Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8065 Support HDFS encryption functionality on Hive
  3. HIVE-10630

Renaming tables across encryption zones renames table even though the operation throws error

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Pending Closed
    • None
    • 1.2.1, 1.3.0
    • Metastore, Security
    • None

    Description

      Create a table with data in an encrypted zone 1 and then rename it to encrypted zone 2.

      hive> alter table encdb1.testtbl rename to encdb2.testtbl;
      FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. Unable to access old location hdfs://node-1.example.com:8020/apps/hive/warehouse/encdb1.db/testtbl for table encdb1.testtbl
      

      Even though the command errors out the table is renamed. I think the right behavior should be to not rename the table at all including the metadata.

      Attachments

        1. HIVE-10630.patch
          9 kB
          Eugene Koifman

        Activity

          People

            ekoifman Eugene Koifman
            deepesh Deepesh Khandelwal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: