SQLContext is thread safe, so this should be generally safe, otherwise
it should be a bug. However, please note that if you're using
HiveContext (which is usually recommended), all the routee actors share
a single Hive session. This means if one routee execute "use db1", then
the current database of all routee actors is "db1" now.
On 12/19/14 10:45 AM, Manoj Samel wrote:
Hi,
Akka router creates a sqlContext and creates a bunch of "routees"
actors with sqlContext as parameter. The actors then execute query on
that sqlContext.
Would this pattern be a issue ? Any other way sparkContext etc. should
be shared cleanly in Akka routers/routees ?
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org