Skip to content

Commit

Permalink
Updated hive_site.xml to use com.expediagroup.apiary.extensions.metas…
Browse files Browse the repository at this point in the history
…tore.metrics.CodahaleMetrics
  • Loading branch information
Dhrubajyoti Sadhu committed Jan 30, 2024
1 parent b341577 commit 698ad48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion files/hive-site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

<property>
<name>hive.service.metrics.class</name>
<value>org.apache.hadoop.hive.common.metrics.metrics2.CodahaleMetrics</value>
<value>com.expediagroup.apiary.extensions.metastore.metrics.CodahaleMetrics</value>
</property>

<property>
Expand Down
5 changes: 0 additions & 5 deletions files/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,8 @@ if [ -n "$ENABLE_METRICS" ]; then
if [ -n "$ECS_CONTAINER_METADATA_URI" ]; then
echo "INSIDE - ECS_CONTAINER_METADATA_URI"

#export HIVE_METASTORE_HADOOP_OPTS="$HIVE_METASTORE_HADOOP_OPTS -Djava.net.preferIPv4Stack=true -javaagent:/usr/lib/apiary/jmx_prometheus_javaagent-${EXPORTER_VERSION}.jar=8080:/etc/hive/conf/jmx-exporter.yaml"
export EXPORTER_OPTS="-javaagent:/usr/lib/apiary/jmx_prometheus_javaagent-${EXPORTER_VERSION}.jar=8080:/etc/hive/conf/jmx-exporter.yaml"

#echo "HIVE_METASTORE_HADOOP_OPTS and EXPORTER_OPTS set"
#echo $HIVE_METASTORE_HADOOP_OPTS
#echo $EXPORTER_OPTS
#echo "HIVE_METASTORE_HADOOP_OPTS and EXPORTER_OPTS set"
export HADOOP_OPTS="$HADOOP_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9025 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -javaagent:/usr/lib/apiary/jmx_prometheus_javaagent-${EXPORTER_VERSION}.jar=8080:/etc/hive/conf/jmx-exporter.yaml -Dcom.sun.management.jmxremote.ssl=false $HEAP_OPTS"

export CLOUDWATCH_NAMESPACE="${INSTANCE_NAME}-metastore"
Expand Down

0 comments on commit 698ad48

Please sign in to comment.