[Spark] Basics of SparkSession

 

SparkSession = SparkContext + HiveContext + StreamingContext + SQLContext

 

val conf = new SparkConf().setMaster("master").setAppName("appName1")
val sc = new SparkContext(conf)  //或者val sc = new SparkContext("master","appName1")

Once SparkConf is set, it cannot be modified, and the settings are stored in ConcurrentHashMap

 

 

 

Published 61 original articles · won praise 2 · Views 7302

Guess you like

Origin blog.csdn.net/hebaojing/article/details/103898415