Hi, 

I would like to do an operation only once in each worker, at the beggining.
Such as connecting to a database. But I cannot make it work. I created a
static variable that in theory should be different on each worker, so I
should be able to get connections to the database from different workers,
however I just get one. I'm using local[4] in standalone mode.

Thank you



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Database-connection-per-worker-tp1280.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to