1.shell 脚本
#!/bin/bashif [ ! -n "$JAVA_HOME" ]; thenexport JAVA_HOME=/usr/local/jdk1.8.0export PATH=$PATH:$JAVA_HOME/binfiJAR_PATH=$(cd `dirname $0`; pwd)cd ${JAR_PATH}/targetspark2-submit \--master yarn \--deploy-mode cluster \--driver-memory 2g \--num-executors 20 \--executor-memory 20g \--executor-cores 8 \--class com.wsy.WordCount \wordcount-1.0-SNAPSHOT-jar-with-dependencies.jar
