spark-shell
spark-shell --conf spark.hadoop.hive.metastore.uris=thrift://192.169.0.30:9083 --conf spark.yarn.queue=fcqueue --executor-memory 2G --executor-cores 2 --num-executors 20 --driver-memory 2G --driver-cores 5 --master yarn
spark-sql
spark-sql --queue fcqueue --hiveconf hive.metastore.uris=thrift://192.169.0.30:9083 --database rljl --executor-cores 2 --num-executors 2 --executor-memory 1G --conf "spark.hadoop.hive.cli.print.header=true"