Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2238

Impala doesn't set HUE end user as the owner when creating tables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • Impala 2.2.5
    • None
    • Catalog

    Description

      In a Kerberized cluster (sentry not enabled), I can reproduce this problem with below:

      1. Login to HUE as user 'yshi'
      2. In HUE Hive editor, run query create table hue_test_hive (id int)
      3. In HUE Impala editor, run query create table hue_test_impala (id int)
      4. Login to the Hive Metastore database (take PostgreSQL as example) and execute query select * from "TBLS" where "TBLS"."TBL_NAME" like 'hue_test%', and then we get below result:
        TBL_ID CREATE_TIME DB_ID LAST_ACCESS_TIME OWNER RETENTION SD_ID TBL_NAME TBL_TYPE VIEW_EXPANDED_TEXT VIEW_ORIGINAL_TEXT
        29606 1440420180 1 0 yshi 0 88435 hue_test_hive MANAGED_TABLE
        29607 1440420210 1 0 hue/host-10-17-81-247.coe.cloudera.com@YSHI.COM 0 88436 hue_test_impala MANAGED_TABLE

      As we can see, the owner of the table created in Impala editor is owned by hue/<host>@REALM, while that created in Hive editor is owned by the HUE end user.

      I haven't tried insecure cluster yet, but it should behave the same.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Yibing Yibing Shi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: