From 96d30d62e93defce4aafbc810a6cf25aa94c6058 Mon Sep 17 00:00:00 2001 From: lijiankang Date: Tue, 12 Apr 2022 16:19:41 +0800 Subject: [PATCH] support querying hudi tables configured with kerberos --- .../io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java b/presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java index b6a32c5a8..05340684f 100644 --- a/presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java +++ b/presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java @@ -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) {