Giter VIP home page Giter VIP logo

spark-starter's Introduction

spark-starter

A starting point of setting up Spark program locally on Mac Apple Silicon (M1/M2). We target on using the Spark version 3.2.1, JDK8, Scala 2.12, SBT 1.5.7.

  1. JDK 8 (Zulu Community 8)

    brew tap homebrew/cask-versions
    brew install --cask zulu8
    
    # add under ~/.zshrc or ~/.bashrc
    export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
    # Please note that Zulu Community 8 will only be supported until March 2026.
  2. Scala 2.12

    brew install [email protected]
  3. SBT build (1.5.7)

    sbt package
    [info] welcome to sbt 1.5.7 (Azul Systems, Inc. Java 1.8.0_362)
    [info] loading global plugins from /Users/chenghao/.sbt/1.0/plugins
    [info] loading project definition from /Users/chenghao/ResearchHub/repos/blogs/test/spark-starter/project
    [info] loading settings for project spark-starter from build.sbt ...
    [info] set current project to Simple Project (in build file:/Users/chenghao/ResearchHub/repos/blogs/test/spark-starter/)
    [info] compiling 1 Scala source to /Users/chenghao/ResearchHub/repos/blogs/test/spark-starter/target/scala-2.12/classes ...
    [success] Total time: 3 s, completed Apr 22, 2023 2:53:06 PM
  4. Run/Debug in Intellij

    • Set JDK 8 and scala 2.12.17 in IJ project environment
    • Hard-code the spark.master as local[4] in the program when starting a Spark session
    • Run/Debug directly in Intellij

spark-starter's People

Contributors

angryrou avatar

Watchers

 avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.