Trying to run mapreduce from a Cloudera-Manager installed CDAP 3.1 is failing, due to this:
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.YarnClientProtocolProvider
Since CDH5, by default $HADOOP_MAPRED_HOME is not included in yarn.application.classpath. It is instead included in mapreduce.application.classpath.
This is just now causing a problem In CDAP 3.1, since we no longer ship hadoop client jars to the container.