You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2020/01/13 18:57:11 UTC
[hadoop] branch branch-3.2 updated: HDFS-15097. Purge log in KMS
and HttpFS. Contributed by Doris Gu.
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new aa3c964 HDFS-15097. Purge log in KMS and HttpFS. Contributed by Doris Gu.
aa3c964 is described below
commit aa3c96474f52fba01d999fa75880e0948affbb01
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Mon Jan 13 10:48:53 2020 -0800
HDFS-15097. Purge log in KMS and HttpFS. Contributed by Doris Gu.
(cherry picked from commit 6b86a5110e4b3f45bf55f97bd402680bf26cefb9)
---
.../java/org/apache/hadoop/crypto/key/kms/server/KMSWebServer.java | 7 ++-----
.../org/apache/hadoop/fs/http/server/HttpFSServerWebServer.java | 7 ++-----
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/hadoop-common-project/hadoop-kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMSWebServer.java b/hadoop-common-project/hadoop-kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMSWebServer.java
index 036231d..7cfc010 100644
--- a/hadoop-common-project/hadoop-kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMSWebServer.java
+++ b/hadoop-common-project/hadoop-kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMSWebServer.java
@@ -24,7 +24,6 @@ import java.net.URI;
import java.net.URL;
import org.apache.hadoop.classification.InterfaceAudience;
-import org.apache.hadoop.conf.ConfigurationWithLogging;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.http.HttpServer2;
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
@@ -168,10 +167,8 @@ public class KMSWebServer {
public static void main(String[] args) throws Exception {
KMSConfiguration.initLogging();
StringUtils.startupShutdownMessage(KMSWebServer.class, args, LOG);
- Configuration conf = new ConfigurationWithLogging(
- KMSConfiguration.getKMSConf());
- Configuration sslConf = new ConfigurationWithLogging(
- SSLFactory.readSSLConfiguration(conf, SSLFactory.Mode.SERVER));
+ Configuration conf = KMSConfiguration.getKMSConf();
+ Configuration sslConf = SSLFactory.readSSLConfiguration(conf, SSLFactory.Mode.SERVER);
KMSWebServer kmsWebServer = new KMSWebServer(conf, sslConf);
kmsWebServer.start();
kmsWebServer.join();
diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSServerWebServer.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSServerWebServer.java
index 39f1caf..340fccc 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSServerWebServer.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSServerWebServer.java
@@ -26,7 +26,6 @@ import java.net.URI;
import java.net.URL;
import org.apache.hadoop.classification.InterfaceAudience;
-import org.apache.hadoop.conf.ConfigurationWithLogging;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.http.HttpServer2;
import org.apache.hadoop.security.authorize.AccessControlList;
@@ -156,10 +155,8 @@ public class HttpFSServerWebServer {
public static void main(String[] args) throws Exception {
startupShutdownMessage(HttpFSServerWebServer.class, args, LOG);
- Configuration conf = new ConfigurationWithLogging(
- new Configuration(true));
- Configuration sslConf = new ConfigurationWithLogging(
- SSLFactory.readSSLConfiguration(conf, SSLFactory.Mode.SERVER));
+ Configuration conf = new Configuration(true);
+ Configuration sslConf = SSLFactory.readSSLConfiguration(conf, SSLFactory.Mode.SERVER);
HttpFSServerWebServer webServer =
new HttpFSServerWebServer(conf, sslConf);
webServer.start();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org