scala语言
模式 | 启动命令 | |
local模式 | spark-shell --master local | |
yarn模式 | spark-shell --master yarn | |
standalone-client模式 |
①spark-shell ②spark-shell local ③spark-shell --master spark://master:7077 |
|
|
解释下上面的spark-shell local为啥是standalone-client模式,
这是因为启动后会告诉你,你的master是啥
----------------------------------------------------------------------------------------------------------------------------------------------------------------
pyspark
模式 | 启动命令 |
local模式 | pyspark --master local |
yarn模式 | pyspark --master yarn |
standalone-client模式 | ①pyspark ②pyspark --master spark://master:7077 |