From 0f86886604754d69437ba6b0fc54c48bf223e3d3 Mon Sep 17 00:00:00 2001 From: Tadd Wood Date: Fri, 28 Aug 2020 10:21:31 -0700 Subject: [PATCH] Add SSL argument to Impala shell This just appends ssl on the end of the impala shell command. This runs without the ca_cert argument, which I think should be fine in most cases. --- spot-setup/hdfs_setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spot-setup/hdfs_setup.sh b/spot-setup/hdfs_setup.sh index 13e8fcb6..3b2ff09d 100755 --- a/spot-setup/hdfs_setup.sh +++ b/spot-setup/hdfs_setup.sh @@ -124,6 +124,9 @@ case ${DBENGINE} in if [[ ${KERBEROS} == "true" ]]; then db_shell="${db_shell} -k" fi + if [[ ${SSL} == "true" ]]; then + db_shell="${db_shell} --ssl" + fi db_query="${db_shell} -q" db_script="${db_shell} --var=huser=${HUSER} --var=dbname=${DBNAME} -c -f" ;;