Spark development environment-locally installed spark2.x and boot

Source: Internet
Author: User

Developing a spark project with Python requires that spark be installed locally

A Local installation

1. Download http://spark.apache.org/downloads.html

Select the Hadoop version for this machine, click the link to download


2. Click the link to complete the download


3. Extracting files



4. Configure Environment variables

New spark_home=d:\spark\spark-2.2.0-bin-hadoop2.6



Append%spark_home%/bin to the system variable path;



Two to start spark locally

1. Enter D:\spark\hadoop-2.6.5\bin\winutils.exe chmod 777 D:\tmp\hive in cmd (you need to create a new folder first D:\tmp\hive)


2. Run Spark-shell. Be careful not to drive in C, because the Spark-shell run will produce some temporary files, create a new Spark-shell file in the D-Drive spark, and then run the Spark-shell after you enter this folder from CMD.

3. Enter Spark.conf.get ("Spark.sql.catalogImplementation") after entering Spark-shell, and then test the code in an interactive environment.

The Sparkshell folder will appear


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.