Created
May 26, 2018 10:08
-
-
Save ashkrit/e6591c8dd901678b6185f058b6f25392 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def newSparkSession(appName: String, master: String) = { | |
| val sparkConf = new SparkConf().setAppName(appName).setMaster(master) | |
| val sparkSession = SparkSession.builder() | |
| .appName(appName) | |
| .config(sparkConf) | |
| .getOrCreate() | |
| sparkSession | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment