!1439 support querying hudi tables configured with kerberos

Merge pull request !1439 from 建康/master
This commit is contained in:
i-robot 2022-04-14 12:07:32 +00:00 committed by Gitee
commit 6ff4d8264c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ public class BackgroundHiveSplitLoader
ListenableFuture<?> future;
taskExecutionLock.readLock().lock();
try {
future = loadSplits();
future = hdfsEnvironment.doAs(hdfsContext.getIdentity().getUser(), () -> loadSplits());
}
catch (Exception e) {
if (e instanceof IOException) {