AMBARI-25126.fix ambari-metric exception printed in namenode (#16)