How long does the Hadoop Resource Manager store the application information?
问题 we read resource usage from various users and applications from the Hadoop Resource Manager using the official REST api. Our problem is that the application history does not last long enough so that it returns -1 values for used cores, memory and containers. We'd like to extend the duration that yarn stores the data but we don't know where to set the value. 回答1: You should check your mapred-site.xml and look at mapreduce.jobhistory.max-age-ms . As stated in: https://hadoop.apache.org/docs