diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java index 00e7786fa4..6d3e4ea878 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java @@ -25,6 +25,7 @@ import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; +import java.util.logging.Level; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSocket; @@ -33,6 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.wildfly.openssl.OpenSSLProvider; +import org.wildfly.openssl.SSL; /** @@ -118,6 +120,7 @@ private void initializeSSLContext(SSLChannelMode preferredChannelMode) switch (preferredChannelMode) { case Default: try { + java.util.logging.Logger.getLogger(SSL.class.getName()).setLevel(Level.WARNING); ctx = SSLContext.getInstance("openssl.TLS"); ctx.init(null, null, null); channelMode = SSLChannelMode.OpenSSL;