File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
core/src/main/scala/org/apache/spark
v1.2.1/src/main/java/org/apache/hive/service/cli/thrift
v2.3.5/src/main/java/org/apache/hive/service/cli/thrift Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ private[spark] case class SSLOptions(
68
68
*/
69
69
def createJettySslContextFactory (): Option [SslContextFactory ] = {
70
70
if (enabled) {
71
- val sslContextFactory = new SslContextFactory ()
71
+ val sslContextFactory = new SslContextFactory . Server ()
72
72
73
73
keyStore.foreach(file => sslContextFactory.setKeyStorePath(file.getAbsolutePath))
74
74
keyStorePassword.foreach(sslContextFactory.setKeyStorePassword)
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public void run() {
86
86
throw new IllegalArgumentException (ConfVars .HIVE_SERVER2_SSL_KEYSTORE_PATH .varname
87
87
+ " Not configured for SSL connection" );
88
88
}
89
- SslContextFactory sslContextFactory = new SslContextFactory ();
89
+ SslContextFactory sslContextFactory = new SslContextFactory . Server ();
90
90
String [] excludedProtocols = hiveConf .getVar (ConfVars .HIVE_SSL_PROTOCOL_BLACKLIST ).split ("," );
91
91
LOG .info ("HTTP Server SSL: adding excluded protocols: " + Arrays .toString (excludedProtocols ));
92
92
sslContextFactory .addExcludeProtocols (excludedProtocols );
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public void run() {
87
87
throw new IllegalArgumentException (ConfVars .HIVE_SERVER2_SSL_KEYSTORE_PATH .varname
88
88
+ " Not configured for SSL connection" );
89
89
}
90
- SslContextFactory sslContextFactory = new SslContextFactory ();
90
+ SslContextFactory sslContextFactory = new SslContextFactory . Server ();
91
91
String [] excludedProtocols = hiveConf .getVar (ConfVars .HIVE_SSL_PROTOCOL_BLACKLIST ).split ("," );
92
92
LOG .info ("HTTP Server SSL: adding excluded protocols: " + Arrays .toString (excludedProtocols ));
93
93
sslContextFactory .addExcludeProtocols (excludedProtocols );
You can’t perform that action at this time.
0 commit comments