From 4c980ccc393b7f17856e632a448a9a402ceaa2f0 Mon Sep 17 00:00:00 2001 From: ps Date: Wed, 29 Jul 2020 13:08:35 -0500 Subject: [PATCH] SOLR_HOST condition fix (#39) --- hive/ranger-client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive/ranger-client.sh b/hive/ranger-client.sh index afad392..0da453a 100755 --- a/hive/ranger-client.sh +++ b/hive/ranger-client.sh @@ -93,7 +93,7 @@ function install_ranger() { sed -i "s#POLICY_CACHE_FILE_PATH=/etc#POLICY_CACHE_FILE_PATH=/media/ephemeral0/hive_plugin/data#g" enable-hive-plugin.sh # Enable Solr Configure install.properties - if [[ $SOLR_HOST -ne "" ]]; then + if [[ "$SOLR_HOST" != "" ]]; then SPOOL_DIR=/media/ephemeral0/logs/ranger/hive/audit/solr SOLR_URL=http://${SOLR_HOST}:${SOLR_PORT}/solr/ranger_audits