Skip to content

Commit 69b5899

Browse files
committed
PHOENIX-7012 Expose keystore_type parameter in sqlline-thin.py
1 parent 01ca7af commit 69b5899

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/sqlline-thin.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def kill_child():
6969
# Avatica HTTPS truststore
7070
parser.add_argument('-t', '--truststore', help='Truststore file that contains the TLS certificate of the server.')
7171
parser.add_argument('-tp', '--truststore-password', help='Password for the server TLS certificate truststore')
72+
# Keystore type
73+
parser.add_argument('-st', '--keystore-type', help='Type of key- and truststore files (i.e. JKS).')
74+
7275
# Common arguments across sqlline.py and sqlline-thin.py
7376
phoenix_queryserver_utils.common_sqlline_args(parser)
7477
# Parse the args
@@ -201,7 +204,8 @@ def get_spnego_auth_disabled():
201204
jdbc_url += ';truststore=' + tryDecode(args.truststore)
202205
if args.truststore_password:
203206
jdbc_url += ';truststore_password=' + tryDecode(args.truststore_password)
204-
207+
if args.keystore_type:
208+
jdbc_url += ';keystore_type=' + tryDecode(args.keystore_type)
205209

206210
# Add SPENGO auth if this cluster uses it, and there are no conflicting HBase parameters
207211
if (get_hbase_authentication() == 'kerberos' and get_spnego_auth_disabled() == 'false'

0 commit comments

Comments
 (0)