Git Product home page Git Product logo

spark-gradle-plugin's Introduction

GitHub Actions Gradle plugin portal JitPack

💾 spark-gradle-pluginα

Gradle plugin for launching Spark applications.

Gradle Dependency

This plugin is available from the Gradle plugin portal.
Add this in your build.gradle.kts or build.gradle file:

Kotlin
plugins {
  id("dev.reimer.spark") version "<version>"
}
Groovy
plugins {
  id "dev.reimer.spark" version "<version>"
}

Snapshots

Alternatively, snapshot builds are available on JitPack.
Add this in your build.gradle.kts or build.gradle file:

Kotlin
buildscript {
    repositories {
        maven("https://jitpack.io")
    }
    dependencies {
        implementation("dev.reimer:spark-gradle-plugin:<version>")
    }
}
Groovy
buildscript {
    repositories {
        maven { url 'https://jitpack.io' }
    }
    dependencies {
        implementation 'dev.reimer:spark-gradle-plugin:<version>'
    }
}

Usage

Configuring builds

Run Spark applications by registering tasks:

Kotlin
tasks.register<SparkSubmit>("launchSparkApp") {
    applicationResource.set(file("app.jar"))
    mainClass.set("com.example.Example")
}
Groovy
task launchSparkApp(type: SparkSubmit) {
    applicationResource = file("app.jar")
    mainClass = "com.example.Example"
}

(You may need to import SparkSubmit)

Options

Options can be applied to each task individually.

Kotlin
tasks.register<SparkSubmit>("launchSparkApp") {
    applicationResource.set(file(""))
    mainClass.set("")
    applicationArguments.add("")
    applicationName.set("")
    deployMode.set(SparkSubmit.DeployMode.Cluster)
    master.set("yarn")
    configuration.put("", 3)
    propertiesFile.set(file(""))
    jars.from("")
    files.from("")
    pythonFiles.from("")
    verbose.set(true)
    javaHome.set("")
    sparkHome.set("")
    awaitCompletion.set(false)
}
Groovy
task launchSparkApp(type: SparkSubmit) {
    applicationResource = file("")
    mainClass = ""
    applicationArguments.add("")
    applicationName = ""
    deployMode = SparkSubmit.DeployMode.Cluster
    master = "yarn"
    configuration[""] = 3
    propertiesFile = file("")
    jars.from("")
    files.from("")
    pythonFiles.from("")
    verbose = true
    javaHome = ""
    sparkHome = ""
    awaitCompletion = false
}

Status α

⚠️ Warning: This project is in an experimental alpha stage:

  • The API may be changed at any time without further notice.
  • Development still happens on master.
  • Pull Requests are highly appreciated!

spark-gradle-plugin's People

Contributors

janheinrichmerker avatar dependabot[bot] avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar  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.