1.

spark conf 目录下需要配置进去hadoop home

2.需要spark 提交的配置文件 加上‘-- master yarn-cluster/yarn-client’设置提交的模式