solution:
1, modify the directory permissions
su hdfs
hdfs dfs -chmod 1777 /tmp/logs
hdfs dfs -chown mapred:hadoop /tmp/logs
hdfs dfs -chgrp -R hadoop /tmp/logs
2, restart JobHistory Server
solution:
1, modify the directory permissions
su hdfs
hdfs dfs -chmod 1777 /tmp/logs
hdfs dfs -chown mapred:hadoop /tmp/logs
hdfs dfs -chgrp -R hadoop /tmp/logs
2, restart JobHistory Server