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

Iceberg: CTAS, CTLT query failure while fetching URI for authorization

    XMLWordPrintableJSON

Details

    Description

      When we perform CTAS query with the following configs set to true - 

      set hive.security.authorization.enabled=true;
      set hive.security.authorization.tables.on.storagehandlers=true;
      
      create table ctas_source stored by iceberg stored as orc as select * from src;

      The following error trace is seen - 

      Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Exception occurred while getting the URI from storage handler: null
              at org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizerV2.addHivePrivObject(CommandAuthorizerV2.java:213)
              at org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizerV2.getHivePrivObjects(CommandAuthorizerV2.java:152)
              at org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizerV2.doAuthorization(CommandAuthorizerV2.java:77)
              at org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizer.doAuthorization(CommandAuthorizer.java:58)
      

       

       

      Attachments

        Issue Links

          Activity

            People

              sbadhya Sourabh Badhya
              sbadhya Sourabh Badhya
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: