解决方法:
在yarn-site.yaml文件添加hadoop classpath查询出的内容:
yarn.application.classpath
/export/server/hadoop/etc/hadoop:/export/server/hadoop/share/hadoop/common/lib/:/export/server/hadoop/share/hadoop/common/:/export/server/hadoop/share/hadoop/hdfs:/export/server/hadoop/share/hadoop/hdfs/lib/:/export/server/hadoop/share/hadoop/hdfs/:/export/server/hadoop/share/hadoop/mapreduce/:/export/server/hadoop/share/hadoop/yarn:/export/server/hadoop/share/hadoop/yarn/lib/:/export/server/hadoop/share/hadoop/yarn/*
然后停止hdfs-stop.sh,启动hdfs-start.sh,然后停止yarn-stop.sh,启动yarn-start.sh,然后重启bin/hive解决!