I want to send the Hadoop metrics to Prometheus. So I added this config at the end of hadoop-env.sh :
hadoop-env.sh
export HDFS_DATANODE_OPTS="${HDFS_DATA