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

Iceberg: Write failing due to Ranger Authorization failure

    XMLWordPrintableJSON

Details

    Description

      Caused by: java.lang.RuntimeException: MetaException(message:Permission denied: user [systest] does not have [RWSTORAGE] privilege on [iceberg%3A%2F%2Fspark_iceberg%2Fsimple_types_avro%3Fsnapshot%3D%2Fwarehouse%2Ftablespace%2Fexternal%2Fhive%2Fspark_iceberg.db%2Fsimple_types_avro%2Fmetadata%2F00000-50dd01bd-15d9-49bd-a970-80d89231d36c.metadata.json])
      	at org.apache.iceberg.relocated.com.google.common.base.Throwables.propagate(Throwables.java:243)
      	at org.apache.iceberg.common.DynMethods$UnboundMethod.invoke(DynMethods.java:80)
      	at org.apache.iceberg.hive.MetastoreUtil.alterTable(MetastoreUtil.java:64)
      	at org.apache.iceberg.hive.HiveTableOperations.lambda$persistTable$3(HiveTableOperations.java:322)
      	at org.apache.iceberg.ClientPoolImpl.run(ClientPoolImpl.java:58)
      	at org.apache.iceberg.ClientPoolImpl.run(ClientPoolImpl.java:51)
      	at org.apache.iceberg.hive.CachedClientPool.run(CachedClientPool.java:76)
      	at org.apache.iceberg.hive.HiveTableOperations.persistTable(HiveTableOperations.java:321)
      	at org.apache.iceberg.hive.HiveTableOperations.doCommit(HiveTableOperations.java:277)
      	... 36 more
      Caused by: MetaException(message:Permission denied: user [systest] does not have [RWSTORAGE] privilege on [iceberg%3A%2F%2Fspark_iceberg%2Fsimple_types_avro%3Fsnapshot%3D%2Fwarehouse%2Ftablespace%2Fexternal%2Fhive%2Fspark_iceberg.db%2Fsimple_types_avro%2Fmetadata%2F00000-50dd01bd-15d9-49bd-a970-80d89231d36c.metadata.json])
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_req_result$alter_table_req_resultStandardScheme.read(ThriftHiveMetastore.java)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_req_result$alter_table_req_resultStandardScheme.read(ThriftHiveMetastore.java)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_req_result.read(ThriftHiveMetastore.java)
      	at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:88)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_alter_table_req(ThriftHiveMetastore.java:2978)
      	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.alter_table_req(ThriftHiveMetastore.java:2965)
      	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.alter_table_with_environmentContext(HiveMetaStoreClient.java:482)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      Attachments

        Issue Links

          Activity

            People

              ayushtkn Ayush Saxena
              ayushtkn Ayush Saxena
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h
                  1h