diff --git a/files/startup.sh b/files/startup.sh index ab9aaee..a748e93 100755 --- a/files/startup.sh +++ b/files/startup.sh @@ -79,7 +79,14 @@ if [[ -n $RANGER_AUDIT_DB_URL ]]; then fi fi +echo "HELLO NEW WORLD" +echo $ENABLE_METRICS + if [ -n "$ENABLE_METRICS" ]; then + echo "INSIDE HELLO NEW WORLD" + + echo $ENABLE_METRICS + update_property.py hive.metastore.metrics.enabled true /etc/hive/conf/hive-site.xml #configure to send metrics to cloudwatch when running on ECS if [ -n "$ECS_CONTAINER_METADATA_URI" ]; then @@ -173,6 +180,10 @@ export AUX_CLASSPATH="/usr/share/java/mariadb-connector-java.jar" [[ ! -z $HIVE_DB_WHITELIST ]] && export AUX_CLASSPATH="$AUX_CLASSPATH:/usr/lib/apiary/apiary-metastore-auth-${APIARY_METASTORE_AUTH_VERSION}.jar" [[ ! -z $ENABLE_METRICS ]] && export AUX_CLASSPATH="$AUX_CLASSPATH:/usr/lib/apiary/apiary-metastore-metrics-${APIARY_METASTORE_METRICS_VERSION}-all.jar" +echo $ENABLE_METRICS +echo $AUX_CLASSPATH +echo "HELLO WORLD" + #configure container credentials provider when running in ECS if [ ! -z ${AWS_CONTAINER_CREDENTIALS_RELATIVE_URI} ]; then update_property.py fs.s3a.aws.credentials.provider com.amazonaws.auth.ContainerCredentialsProvider /etc/hadoop/conf/core-site.xml