This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix-queryserver.git


The following commit(s) were added to refs/heads/master by this push:
     new e5dd1e7  PHOENIX-5702 Add https support to sqlline-thin script
e5dd1e7 is described below

commit e5dd1e7d8ca17f8344ad94fcbb9eb835afbd14dc
Author: Istvan Toth <[email protected]>
AuthorDate: Thu Jan 30 10:54:06 2020 +0100

    PHOENIX-5702 Add https support to sqlline-thin script
    
    Closes #17
---
 bin/sqlline-thin.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/sqlline-thin.py b/bin/sqlline-thin.py
index f6f9ff1..ff5ad77 100755
--- a/bin/sqlline-thin.py
+++ b/bin/sqlline-thin.py
@@ -56,6 +56,9 @@ parser.add_argument('-s', '--serialization', 
help='Serialization type for HTTP A
 # Avatica authentication
 parser.add_argument('-au', '--auth-user', help='Username for HTTP 
authentication.')
 parser.add_argument('-ap', '--auth-password', help='Password for HTTP 
authentication.')
+# Avatica HTTPS truststore
+parser.add_argument('-t', '--truststore', help='Truststore file that contains 
the TLS certificate of the server.')
+parser.add_argument('-tp', '--truststore-password', help='Password for the 
server TLS certificate truststore')
 # Common arguments across sqlline.py and sqlline-thin.py
 phoenix_utils.common_sqlline_args(parser)
 # Parse the args
@@ -161,6 +164,10 @@ if args.auth_user:
     jdbc_url += ';avatica_user=' + args.auth_user
 if args.auth_password:
     jdbc_url += ';avatica_password=' + args.auth_password
+if args.truststore:
+    jdbc_url += ';truststore=' + args.truststore
+if args.truststore_password:
+    jdbc_url += ';truststore_password=' + args.truststore_password
 
 java_cmd = java + ' $PHOENIX_OPTS ' + \
     ' -cp "' + phoenix_utils.hbase_conf_dir + os.pathsep + 
phoenix_utils.phoenix_thin_client_jar + \

Reply via email to