Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.3.9
-
None
-
None
Description
when I use this code to access hms
UserGroupInformation proxyUser = UserGroupInformation.createProxyUser(proxyUserName, userGroupInformation); proxyUser.doAs((PrivilegedExceptionAction<Boolean>) () -> { XXXXXX return true; });
there will throw exception
so I debug with this, and find something maybe wrong in the class named HiveMetaStoreClient:
because the value of UserGroupInformation.getLoginUser().getRealUser() that in proxy.doas is null, so i change to UserGroupInformation.getLoginUser() and i works
so what I did is no problem?