Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/datumbrain/gossub

Trigger spark-submit in Golang. A Go implementation of famous SparkLauncher.java.
https://github.com/datumbrain/gossub

apachespark go golang spark

Last synced: 3 months ago
JSON representation

Trigger spark-submit in Golang. A Go implementation of famous SparkLauncher.java.

Awesome Lists containing this project

README

        

# gossub (Go `spark-submit` wrapper)

Trigger spark-submit in Golang. A Go implementation of `org.apache.spark.launcher.SparkLauncher`.

## Usage

```go
package main

import (
"os"

"github.com/datumbrain/gossub"
)

func main() {
sl := gossub.SparkLauncher{
AppName: "my-new-app",
AppResource: "test",
MainClass: "org.apache.spark.examples.SparkPi",
SparkHome: "/usr/local/spark",
Jar: "original-spark-examples_2.12-3.1.0-SNAPSHOT.jar",
}

sl.Init()
sl.RedirectError(os.Stderr)
sl.RedirectOutput(os.Stdout)
sl.Launch()
}
```

## Author

[Fahad Siddiqui](https://github.com/fahadsiddiqui)

## License

MIT