Coder Social home page Coder Social logo

sundarshankar89 / setup-spark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vemonet/setup-spark

0.0 0.0 1.0 493 KB

✨ Setup Apache Spark in GitHub Action workflows

Home Page: https://github.com/marketplace/actions/setup-apache-spark

License: MIT License

TypeScript 81.89% JavaScript 5.92% Python 12.18%

setup-spark's Introduction

setup-spark ✨

Run setup-spark action CodeQL analysis

This action sets up Apache Spark in your environment for use in GitHub Actions by:

  • installing and adding spark-submit and spark-shell to PATH
  • setting SPARK_HOME, PYSPARK_PYTHON environment variable (and others) in the workflow

This enables to test applications using a local Spark context in GitHub Actions.

Usage

You will need to setup Python and Java in the job before setting up Spark

Check for the latest Spark versions at https://spark.apache.org/downloads.html

Basic workflow:

steps:
- uses: actions/setup-python@v2
  with:
    python-version: '3.8'
- uses: actions/setup-java@v1
  with:
    java-version: '11'

- uses: vemonet/setup-spark@v1
  with:
    spark-version: '3.1.2'
    hadoop-version: '3.2'

- run: spark-submit --version

See the action.yml file for a complete rundown of the available parameters.

You can also provide a specific URL to download the Spark .tgz:

- uses: vemonet/setup-spark@v1
  with:
    spark-version: '3.1.1'
    hadoop-version: '3.2'
    spark-url: 'https://archive.apache.org/dist/spark/spark-3.1.1/spark-3.1.1-bin-hadoop3.2.tgz'

Available versions

The Hadoop versions stay quite stable (latest is 3.2)

Check for the latest Spark versions at https://spark.apache.org/downloads.html

The setup-spark action is tested in .github/workflows/test-setup-spark.yml for:

  • Apache Spark versions 3.0.2, 3.0.3, 3.1.1, 3.1.2
  • Hadoop version 3.2
  • Ubuntu runner

License

The scripts and documentation in this project are released under the MIT License.

Contributions

Contributions are welcome! Feel free to test other Spark versions, and submit issues, or pull requests.

See the contributor's guide for more details.

setup-spark's People

Contributors

vemonet avatar dependabot[bot] avatar joekendal avatar

Forkers

souravbaner-da

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.