I think you have upgraded CDH. This is a common problem when CDH is upgraded to version 5 and above. To solve this, open the mapred-site.xml file and remove the following property:
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>