How to open spark with Jupyter notebook

Source: Internet
Author: User
Tags jupyter jupyter notebook pyspark

The computer has Anaconda Python installed and then downloaded the spark2.1.0. Because the version is too new, some content on the web and in the book is no longer applicable. For example, on how to use Ipython and Jupyter, the tutorial gives you the option to open spark with the following statement into Ipython or Ipython Notebook:

Ipython=1./bin/pysparkipython_opts= "Notebook"./bin/pyspark

Then the goose runs the above statement and I get the following:

in 2.0 +. Remove these from the environment and set Pyspark_driver_python and pyspark_driver_python_opts instead.

So the Setup method for using Jupyter to open Spark is:

1 export pyspark_driver_python=jupyter2 export pyspark_driver_python_opts=' Notebook ' Pyspark

This will automatically open spark with Jupyter notebook when you open spark again.

How to open spark with Jupyter notebook

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.