Overview of Sparkmagic
masterSparkmagic is a set of tools for interactively working with remote Spark clusters in Jupyter notebooks. It interacts with remote Spark clusters through a REST server.
Supported server implementations:
- Livy: For running interactive sessions on Yarn.
- Lighter: For running interactive sessions on Yarn or Kubernetes (supports PySpark sessions only).
- Ilum: For running interactive sessions on Yarn or Kubernetes.
Key features include:
- Running Spark code in multiple languages via Livy.
- Automatic creation of
SparkContext(sc) andHiveContext(sqlContext). - Using
%%sqlmagic for SparkSQL queries. - Automatic visualization of SQL queries in PySpark, Spark, and SparkR kernels.
- Accessing Spark application info and logs via
%%infomagic. - Capturing SQL query output as Pandas dataframes.
- Sending local files or dataframes to a remote cluster.