Skip to content

ocean-oss/spark-jupyter-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark/Jupyter App

This app runs a fully-managed Spark cluster of an arbitrary size. It also launches a Jupyter instance that is configured to work with the Spark cluster.

To access the Spark cluster in your notebooks simply use the SPARK_MASTER environment variable:

import os
from pyspark.sql import SparkSession

session = SparkSession.builder.master(os.environ['SPARK_MASTER']).getOrCreate()
sc = session.sparkContext

You are good to go!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages