Sharing sqlContext between Akka router and routee actors ...

2014-12-18 Thread Manoj Samel
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,


Re: Sharing sqlContext between Akka router and routee actors ...

2014-12-18 Thread Soumya Simanta
why do you need a router? I mean cannot you do with just one actor which
has the SQLContext inside it?

On Thu, Dec 18, 2014 at 9:45 PM, Manoj Samel manojsamelt...@gmail.com
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,