July 2018
Intermediate to advanced
474 pages
13h 37m
English
This section will require initializing a Spark cluster that will be used for all recipes in this chapter. A Spark notebook can be initialized in the terminal using sparknotebook, as seen in the following screenshot:

A SparkSession can be initialized in a Jupyter notebook using the following script:
spark = SparkSession.builder \ .master("local") \ .appName("StockMarket") \ .config("spark.executor.memory", "6gb") \ .getOrCreate()
Read now
Unlock full access