{"id":19710776,"url":"https://github.com/vemonet/setup-spark","last_synced_at":"2025-04-29T17:31:25.684Z","repository":{"id":40446580,"uuid":"307729878","full_name":"vemonet/setup-spark","owner":"vemonet","description":":octocat:✨ Setup Apache Spark in GitHub Action workflows","archived":false,"fork":false,"pushed_at":"2024-02-28T08:11:51.000Z","size":906,"stargazers_count":18,"open_issues_count":0,"forks_count":12,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-04-29T17:21:24.623Z","etag":null,"topics":["apache-spark","github-actions","setup","spark"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/setup-apache-spark","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vemonet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-27T14:39:25.000Z","updated_at":"2024-06-18T18:41:01.698Z","dependencies_parsed_at":"2024-02-09T14:29:48.782Z","dependency_job_id":"0a25054b-17fa-444a-aa15-e17f94f14107","html_url":"https://github.com/vemonet/setup-spark","commit_stats":{"total_commits":113,"total_committers":3,"mean_commits":"37.666666666666664","dds":"0.026548672566371723","last_synced_commit":"564fa545ceed099a6293d16cfb78f5eac5a8c64e"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fsetup-spark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fsetup-spark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fsetup-spark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fsetup-spark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vemonet","download_url":"https://codeload.github.com/vemonet/setup-spark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251549228,"owners_count":21607370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache-spark","github-actions","setup","spark"],"created_at":"2024-11-11T22:08:24.583Z","updated_at":"2025-04-29T17:31:25.043Z","avatar_url":"https://github.com/vemonet.png","language":"TypeScript","readme":"# ✨ setup-spark\n\n[![Test setup-spark action](https://github.com/vemonet/setup-spark/actions/workflows/test.yml/badge.svg)](https://github.com/vemonet/setup-spark/actions/workflows/test.yml)\n\nThis action sets up Apache Spark in your environment for use in GitHub Actions by:\n\n- installing and adding `spark-submit` and `spark-shell` to the `PATH`\n- setting required environment variables such as `SPARK_HOME`, `PYSPARK_PYTHON` in the workflow\n\nThis enables to test applications using a local Spark context in GitHub Actions.\n\n## 🪄 Usage\n\nYou will need to setup **Python** and **Java** in the job before setting up **Spark**\n\nCheck for the latest Spark versions at https://spark.apache.org/downloads.html\n\nBasic workflow:\n```yaml\nsteps:\n- uses: actions/setup-python@v5\n  with:\n    python-version: '3.10'\n\n- uses: actions/setup-java@v4\n  with:\n    java-version: '21'\n    distribution: temurin\n\n- uses: vemonet/setup-spark@v1\n  with:\n    spark-version: '3.5.3'\n    hadoop-version: '3'\n\n- run: spark-submit --version\n```\n\nSee the [action.yml](action.yml) file for a complete rundown of the available parameters.\n\nYou can also define various options, such as providing a specific URL to download the Spark `.tgz`, or using a specific scala version:\n\n```yaml\n- uses: vemonet/setup-spark@v1\n  with:\n    spark-version: '3.5.3'\n    hadoop-version: '3'\n    scala-version: '2.13'\n    spark-url: 'https://archive.apache.org/dist/spark/spark-3.5.3/spark-3.5.3-bin-hadoop3-scala2.13.tgz'\n    xms: '1024M'\n    xmx: '2048M'\n    log-level: 'debug'\n    install-folder: '/home/runner/work'\n```\n\n## ️🏷️ Available versions\n\nCheck for the latest Spark versions at https://spark.apache.org/downloads.html\n\nThe Hadoop version stays quite stable.\n\nThe `setup-spark` action is tested for various versions of Spark and Hadoop in [`.github/workflows/test.yml`](https://github.com/vemonet/setup-spark/blob/main/.github/workflows/test.yml)\n\n## 📝 Contributions\n\nContributions are welcome! Feel free to test other Spark versions, and submit [issues](/issues), or [pull requests](https://github.com/vemonet/setup-spark/blob/main/CONTRIBUTING.md).\n\nSee the [contributor's guide](https://github.com/vemonet/setup-spark/blob/main/CONTRIBUTING.md) for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvemonet%2Fsetup-spark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvemonet%2Fsetup-spark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvemonet%2Fsetup-spark/lists"}