Created
August 20, 2020 21:46
-
-
Save aialenti/2523a9730b753046629f1e84651a7389 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
| // Import Spark | |
| import org.apache.spark.sql._ | |
| import org.apache.spark.sql.functions._ | |
| // Create Spark Session | |
| val spark = SparkSession.builder. | |
| master("local") | |
| .appName("spark session example") | |
| .getOrCreate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment