运行自带jar包报错
解决办法
输入hadoop classpath找到路径
将刚刚找到的hadoop classpath路径复制黏贴到mapred-site.xml中
<property>
<name>yarn.app.mapreduce.am.env</name>
<value>HADOOP_MAPRED_HOME=黏贴hadoop classpath</value>
</property>
<property>
<name>mapreduce.map.env</name>
<value>HADOOP_MAPRED_HOME=黏贴hadoop classpath</value>
</property>
<property>
<name>mapreduce.reduce.env</name>
<value>HADOOP_MAPRED_HOME=黏贴hadoop classpath</value>
</property>
再次进入share中运行jar