This is an automated email from the ASF dual-hosted git repository.
bharat pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 92cf63c HDDS-3513. Add OzoneConfiguration to UGI when startup
S3Gateway (#897)
92cf63c is described below
commit 92cf63c41c4ef338feafa2acb9903185e5a94d39
Author: Simon0806 <[email protected]>
AuthorDate: Thu May 7 12:47:03 2020 +0800
HDDS-3513. Add OzoneConfiguration to UGI when startup S3Gateway (#897)
---
.../s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java
index 5d34181..1a12c56 100644
---
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java
+++
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java
@@ -24,6 +24,7 @@ import org.apache.hadoop.hdds.cli.HddsVersionProvider;
import org.apache.hadoop.hdds.conf.OzoneConfiguration;
import org.apache.hadoop.hdds.tracing.TracingUtil;
+import org.apache.hadoop.security.UserGroupInformation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import picocli.CommandLine.Command;
@@ -51,6 +52,7 @@ public class Gateway extends GenericCli {
TracingUtil.initTracing("S3gateway", ozoneConfiguration);
OzoneConfigurationHolder.setConfiguration(ozoneConfiguration);
ozoneConfiguration.set("hadoop.http.authentication.type", "simple");
+ UserGroupInformation.setConfiguration(ozoneConfiguration);
httpServer = new S3GatewayHttpServer(ozoneConfiguration, "s3gateway");
start();
return null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]