From 6b86a5110e4b3f45bf55f97bd402680bf26cefb9 Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Mon, 13 Jan 2020 10:48:53 -0800 Subject: [PATCH] HDFS-15097. Purge log in KMS and HttpFS. Contributed by Doris Gu. --- .../apache/hadoop/crypto/key/kms/server/KMSWebServer.java | 7 ++----- .../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 036231de70..7cfc010ac2 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.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 URL getKMSUrl() { 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 1135512d02..24a30f4db0 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 @@ -28,7 +28,6 @@ import java.util.Set; 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.AuthenticationFilterInitializer; @@ -178,10 +177,8 @@ public URL getUrl() { 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();