Please make sure the mapreduce service is turn on and running. You can verify this by issuing the command “jps” on the second master node.
If the services are up and running, please let us know what error you encounter on the web UI.
Please also share the history server logs in:
HDP 2: /var/log/hadoop-mapreduce/mapred/mapred-mapred-historyserver-xxx.log
HDP 1: /var/log/hadoop/mapred/hadoop-mapred-historyserver-xxx.log