fix bug of historyserver

the configuration "spark.history.retainedApplications" is invalid