spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Owen <>
Subject Re: Avoid broacasting huge variables
Date Sat, 20 Sep 2014 09:48:44 GMT
Joining in a side conversation - yes this is the way to go. The data is
immutable so can be shared across all executors in one JVM in a singleton.

How to load it depends on where it is but there is nothing special to Spark
here. For instance if the file is on HDFS then you use HDFS APIs in some
class in your app that implements the Singleton pattern and then you use
this class in your function to access data.
We normally copy a file to the nodes and then explicitly load it in a
function passed to mapPartitions.

On 9/20/14, octavian.ganea <> wrote:
> Anyone ?
> Is there any option to load data in each node before starting any
> computation like it is the initialization of mappers in Hadoop ?
> --
> View this message in context:
> Sent from the Apache Spark User List mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Martin Goodson


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message