Re: problem with HiveContext inside Actor

2014-09-17 Thread Michael Armbrust
- dev Is it possible that you are constructing more than one HiveContext in a single JVM? Due to global state in Hive code this is not allowed. Michael On Wed, Sep 17, 2014 at 7:21 PM, Cheng, Hao wrote: > Hi, Du > > I am not sure what you mean “triggers the HiveContext to create a > database

RE: problem with HiveContext inside Actor

2014-09-17 Thread Cheng, Hao
Hi, Du I am not sure what you mean "triggers the HiveContext to create a database", do you create the sub class of HiveContext? Just be sure you call the "HiveContext.sessionState" eagerly, since it will set the proper "hiveconf" into the SessionState, otherwise the HiveDriver will always get th