目录 spark 写代码的方式 1、在IDEA中将代码编写好然后打包上传到集群中运行(使用最多) 2、spark shell(REPL -- 交互式的命令行) 3、spark-sql(spark的SQL命令行)