1.提交任务 hdfs dfs -put SpeakerBigData-1.0-SNAPSHOT.jar /spark/hadoop/my_jars/ 2.提交依赖 3.执行任务 /data/software/spark-2.2.1/bin/spark-submit –class com.anker.eufy.device.DeviceRePurchase –master yarn –conf spark.default.parallelism=9 –num-executors 6 –driver-memory 3g –executor-memory 2g –executor-cores 2