spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DB Tsai <>
Subject Re: Passing runtime config to workers?
Date Fri, 16 May 2014 21:39:36 GMT
Since the evn variables in driver will not be passed into workers, the most
easy way you can do is refer to the variables directly in workers from

For example,

val variableYouWantToUse = System.getenv("something defined in env")
you can access `variableYouWantToUse` here


DB Tsai
My Blog:

On Fri, May 16, 2014 at 1:59 PM, Robert James <>wrote:

> What is a good way to pass config variables to workers?
> I've tried setting them in environment variables via, but, as
> far as I can tell, the environment variables set there don't appear in
> workers' environments.  If I want to be able to configure all workers,
> what's a good way to do it?  For example, I want to tell all workers:
> USE_ALGO_A or USE_ALGO_B - but I don't want to recompile.

View raw message