Final Report | Installation | How it Works | Use Cases | Code | License
pip install sparkmonitor
jupyter nbextension install sparkmonitor --py --user --symlink
jupyter nbextension enable sparkmonitor --py --user
jupyter serverextension enable --py --user sparkmonitor
ipython profile create && echo "c.InteractiveShellApp.extensions.append('sparkmonitor.kernelextension')" >> $(ipython profile locate default)/ipython_kernel_config.py
pip install sparkmonitor
--symlink
) into the jupyter configuration directory by jupyter nbextension
command. The second line configures the frontend extension to load on notebook startup.jupyter nbextension install --py sparkmonitor --user --symlink
jupyter nbextension enable sparkmonitor --user --py
jupyter serverextension enable --py --user sparkmonitor
ipython profile create
echo "c.InteractiveShellApp.extensions.append('sparkmonitor.kernelextension')" >> $(ipython profile locate default)/ipython_kernel_config.py
By default the Spark Web UI runs on localhost:4040
. If this is not the case, setting the environment variable SPARKMONITOR_UI_HOST
and SPARKMONITOR_UI_PORT
overrides the default Spark UI hostname localhost
and port 4040 used by the Spark UI proxy.
Building the extension involves three parts:
git clone https://github.com/krishnan-r/sparkmonitor
cd sparkmonitor/extension
#Build Javascript
yarn install
yarn run webpack
#Build SparkListener Scala jar
cd scalalistener/
sbt package
#Install the python package (in editable format -e for development)
cd sparkmonitor/extension/
pip install -e .
# The sparkmonitor python package is now installed. Configure with jupyter as above.