Skip to content

Commit

Permalink
Added logs to trace datadog
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhrubajyoti Sadhu committed Jan 11, 2024
1 parent 24a3e00 commit 3414dcc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions files/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3414dcc

Please sign in to comment.