You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by dz...@apache.org on 2023/08/10 13:48:31 UTC
[drill] 01/01: Ensure that Hadoop is using imple authentication during impersonation tests.
This is an automated email from the ASF dual-hosted git repository.
dzamo pushed a commit to branch hadoop-impersonation-tests-simple-auth
in repository https://gitbox.apache.org/repos/asf/drill.git
commit 293b8ecd0d65531c01ffe7bb2e7e1cb46a6b1551
Author: James Turton <ja...@somecomputer.xyz>
AuthorDate: Thu Aug 10 15:39:53 2023 +0200
Ensure that Hadoop is using imple authentication during impersonation tests.
Some undetermined OS or library change in the GitHub Action Runner image version
has resulted in errors matching the below for tests that extend BaseTestImpersonation.
`java.io.IOException: Running in secure mode, but config doesn't have a keytab`
One guess is that the new Runner image bundles a Kerberos keytab, or other file
that is detected by Hadoop and makes it decide that it should run in Secure Mode.
This commit explicitly sets Hadoop's authentication mode simple in for Drill's
impersonation tests.
---
.../java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java b/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java
index f1d471d09e..4c6e8a463c 100644
--- a/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java
+++ b/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java
@@ -103,6 +103,7 @@ public class BaseTestImpersonation extends ClusterTest {
// Set the proxyuser settings so that the user who is running the Drillbits/MiniDfs can impersonate other users.
dfsConf.set(String.format("hadoop.proxyuser.%s.hosts", processUser), "*");
dfsConf.set(String.format("hadoop.proxyuser.%s.groups", processUser), "*");
+ dfsConf.set("hadoop.security.authentication", "simple");
}
// Start the MiniDfs cluster