Skip to content

Commit

Permalink
Ensure that Hadoop is using imple authentication during impersonation…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
jnturton committed Aug 10, 2023
1 parent 4e3992b commit 293b8ec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ protected static void startMiniDfsCluster(String testClass, boolean isImpersonat
// 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
Expand Down

0 comments on commit 293b8ec

Please sign in to comment.