Using local[4] runs everything in local mode within a single JVM. So you are expected to get only one connection when using a static variable.
TD On Thu, Feb 6, 2014 at 5:01 AM, aecc <[email protected]> wrote: > I forgot to mention that I'm running Spark Streaming > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Database-connection-per-worker-tp1280p1281.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. >
