Skip to content

Commit

Permalink
Merge pull request #1425 from data-integrations/ut-fix-cherrypick
Browse files Browse the repository at this point in the history
[🍒] bypass the lookup of the OS username in hadoop
  • Loading branch information
itsankit-google authored Jun 18, 2024
2 parents 11bb3c2 + c045897 commit 4e63e59
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import org.apache.hadoop.mapred.TaskAttemptID;
import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.security.UserGroupInformation;
import org.junit.Assert;
import org.junit.Test;

Expand Down Expand Up @@ -80,6 +81,7 @@ public class TestDelegatingGCSOutputCommitter {
private static final String pathSuffix = LocalDate.now().format(DateTimeFormatter.ISO_DATE);

public TestDelegatingGCSOutputCommitter() throws IOException {
UserGroupInformation.setLoginUser(UserGroupInformation.createRemoteUser("runner"));
}

private void writeOutput(TaskAttemptContext context, DelegatingGCSOutputCommitter committer) throws IOException,
Expand Down

0 comments on commit 4e63e59

Please sign in to comment.