banzaicloud / spark-metrics

Spark metrics related custom classes and sinks (e.g. Prometheus)
Apache License 2.0
176 stars 66 forks source link

Add sbt assembly support #75

Closed o-shevchenko closed 3 years ago

o-shevchenko commented 3 years ago
Q A
Bug fix? no
New feature? no
API breaks? no
Deprecations? no
Related tickets #74
License Apache 2.0

What's in this PR?

Add sbt assembly plugin to be able to build fat jar locally with all needed dependencies to include it to Spark classpath

Why?

Sometimes it's not convenient to use --packages with spark-submit command but just include a fat jar with all needed dependencies to classpath might be much simpler.

Related PR: https://github.com/banzaicloud/spark-metrics/pull/74 (I have added simpleclient_common to dependencies since it needed for simpleclient_pushgateway and simpleclient)

Checklist

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.