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

https://github.com/aamend/spark-archetype

Maven archetype is a convenient way to create fully fledged SPARK libraries at minimal cost
https://github.com/aamend/spark-archetype

devops maven spark

Last synced: 9 months ago
JSON representation

Maven archetype is a convenient way to create fully fledged SPARK libraries at minimal cost

Awesome Lists containing this project

README

          

# Spark archetype

Maven archetype is a convenient way to create fully fledged Spark libraries at minimal cost.
A Spark module called `com.aamend.spark.ml:my-awesome-module:2.0-SNAPSHOT` can be created as follows.

```
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=com.aamend.spark \
-DarchetypeArtifactId=archetype \
-DarchetypeVersion=1.0 \
-DgroupId=com.aamend.spark.ml \
-DartifactId=my-awesome-module \
-Dversion=2.0-SNAPSHOT
```

Generated project can be compiled as follows

`mvn clean package`

Should you need to include third parties dependencies, packaging shaded jar as follows

`mvn clean package -Pshaded`

Spark module can be validated as follows

`spark-submit --class com.aamend.spark.ml.App target/my-awesome-module-2.0-SNAPSHOT.jar`

## Compile

`mvn clean install`