Yes there is. You can use the default dbcp or your own preferred connection pool manager. Then when you ask for a connection you get one from the pool.
Take a look at this https://github.com/manasdebashiskar/kafka-exactly-once It is forked from Cody's repo. ..Manas -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-and-DB-connection-pool-tp26577p26596.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org