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