Hi,

Answering your question from the title (that seems different from what's in
the email) and leaving the other part of how to do it using a DI framework
to others.

Spark does not use any DI framework internally and wires components itself.

Jacek

On 2 Apr 2017 3:29 p.m., "kant kodali" <[email protected]> wrote:

> Hi All,
>
> I am wondering if can get SparkConf
> <https://spark.apache.org/docs/2.1.0/api/java/org/apache/spark/SparkConf.html>
>  object
> through Dependency Injection? I currently use HOCON
> <https://github.com/typesafehub/config/blob/master/HOCON.md> library to
> store all key/value pairs required to construct SparkConf. The problem is
> as I created multiple client jars(By client jars I mean the one we supply
> for spark-submit to run our App) where each of them requiring its own
> config It would be nice to have SparkConf created by the DI framework
> depending on the client jar we want to run. I am assuming someone must have
> done this?
>
> Thanks!
>

Reply via email to