xunliu opened a new issue, #4263:
URL: https://github.com/apache/gravitino/issues/4263

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   RangerHiveIT execute failed in the CI:
   
https://github.com/apache/gravitino/actions/runs/10072908728/job/27853994883?pr=4257
   
   ### Error message and/or stacktrace
   
   ```
   RangerHiveIT > initializationError FAILED
       java.lang.RuntimeException: java.sql.SQLException: Could not open client 
transport with JDBC Uri: jdbc:hive2://172.17.0.3:10000/default: Failed to open 
new session: java.lang.RuntimeException: 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
 User: anonymous is not allowed to impersonate gravitino
           at 
org.apache.gravitino.integration.test.authorization.ranger.RangerHiveIT.setup(RangerHiveIT.java:87)
   
           Caused by:
           java.sql.SQLException: Could not open client transport with JDBC 
Uri: jdbc:hive2://172.17.0.3:10000/default: Failed to open new session: 
java.lang.RuntimeException: 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
 User: anonymous is not allowed to impersonate gravitino
               at 
org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:224)
               at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
               at 
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
               at 
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
               at 
org.apache.gravitino.integration.test.authorization.ranger.RangerHiveIT.setup(RangerHiveIT.java:84)
   
               Caused by:
               org.apache.hive.service.cli.HiveSQLException: Failed to open new 
session: java.lang.RuntimeException: 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
 User: anonymous is not allowed to impersonate gravitino
                   at 
app//org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:267)
                   at 
app//org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:258)
                   at 
app//org.apache.hive.jdbc.HiveConnection.openSession(HiveConnection.java:683)
                   at 
app//org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:200)
                   ... 4 more
   
                   Caused by:
                   org.apache.hive.service.cli.HiveSQLException: Failed to open 
new session: java.lang.RuntimeException: 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
 User: anonymous is not allowed to impersonate gravitino
                       at 
org.apache.hive.service.cli.session.SessionManager.createSession(SessionManager.java:419)
                       at 
org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:[362](https://github.com/apache/gravitino/actions/runs/10072908728/job/27853994883?pr=4257#step:8:363))
                       at 
org.apache.hive.service.cli.CLIService.openSessionWithImpersonation(CLIService.java:193)
                       at 
org.apache.hive.service.cli.thrift.ThriftCLIService.getSessionHandle(ThriftCLIService.java:440)
                       at 
org.apache.hive.service.cli.thrift.ThriftCLIService.OpenSession(ThriftCLIService.java:322)
                       at 
org.apache.hive.service.rpc.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1377)
                       at 
org.apache.hive.service.rpc.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1362)
                       at 
org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
                       at 
org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
                       at 
org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
                       at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
                       at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                       at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                       at java.lang.Thread.run(Thread.java:748)
   
                       Caused by:
                       java.lang.RuntimeException: java.lang.RuntimeException: 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
 User: anonymous is not allowed to impersonate gravitino
                           at 
org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:89)
                           at 
org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36)
                           at 
org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63)
                           at 
java.security.AccessController.doPrivileged(Native Method)
                           at javax.security.auth.Subject.doAs(Subject.java:422)
                           at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1698)
                           at 
org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59)
                           at com.sun.proxy.$Proxy37.open(Unknown Source)
                           at 
org.apache.hive.service.cli.session.SessionManager.createSession(SessionManager.java:410)
                           ... 13 more
   
                           Caused by:
                           java.lang.RuntimeException: 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
 User: anonymous is not allowed to impersonate gravitino
                               at 
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:610)
                               at 
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:548)
                               at 
org.apache.hive.service.cli.session.HiveSessionImpl.open(HiveSessionImpl.java:164)
                               at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                               at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                               at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                               at 
java.lang.reflect.Method.invoke(Method.java:498)
                               at 
org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78)
                               ... 21 more
   
                               Caused by:
                               java.lang.RuntimeException: 
org.apache.hadoop.ipc.RemoteException:User: anonymous is not allowed to 
impersonate gravitino
                                   at 
org.apache.hadoop.ipc.Client.call(Client.java:1475)
                                   at 
org.apache.hadoop.ipc.Client.call(Client.java:1[412](https://github.com/apache/gravitino/actions/runs/10072908728/job/27853994883?pr=4257#step:8:413))
                                   at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
                                   at 
com.sun.proxy.$Proxy30.getFileInfo(Unknown Source)
                                   at 
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:771)
                                   at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                   at 
java.lang.reflect.Method.invoke(Method.java:498)
                                   at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191)
                                   at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
                                   at 
com.sun.proxy.$Proxy31.getFileInfo(Unknown Source)
                                   at 
org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:2108)
                                   at 
org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1305)
                                   at 
org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1301)
                                   at 
org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
                                   at 
org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1301)
                                   at 
org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1[426](https://github.com/apache/gravitino/actions/runs/10072908728/job/27853994883?pr=4257#step:8:427))
                                   at 
org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:708)
                                   at 
org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:654)
                                   at 
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:586)
                                   ... 28 more
   
   54 tests completed, 1 failed, 19 skipped
   ```
   
   ### How to reproduce
   
   Re-execute CI: 
https://github.com/apache/gravitino/actions/runs/10072908728/job/27853994883?pr=4257
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to