mailto:mich...@databricks.com>>, "Cheng, Hao" <mailto:hao.ch...@intel.com>>, "user@spark.apache.org
<mailto:user@spark.apache.org>" <mailto:user@spark.apache.org>>
Subject: Re: problem with HiveContext inside Actor
Akka actor are managed under a
mailto:mich...@databricks.com>>, "Cheng, Hao" <mailto:hao.ch...@intel.com>>, "user@spark.apache.org
<mailto:user@spark.apache.org>" <mailto:user@spark.apache.org>>
Subject: Re: problem with HiveContext inside Actor
Akka actor are managed under a thr
y, September 18, 2014 at 7:17 AM
To: Du Li mailto:l...@yahoo-inc.com.INVALID>>
Cc: Michael Armbrust mailto:mich...@databricks.com>>,
"Cheng, Hao" mailto:hao.ch...@intel.com>>,
"user@spark.apache.org<mailto:user@spark.apache.org>"
mailto:user@spar
, 2014 at 7:40 PM
> To: "Cheng, Hao"
> Cc: Du Li , "user@spark.apache.org"
>
> Subject: Re: problem with HiveContext inside Actor
>
> - dev
>
> Is it possible that you are constructing more than one HiveContext in a
> single JVM? Due to global state in Hive c
>>
Cc: Du Li mailto:l...@yahoo-inc.com.invalid>>,
"user@spark.apache.org<mailto:user@spark.apache.org>"
mailto:user@spark.apache.org>>
Subject: Re: problem with HiveContext inside Actor
- dev
Is it possible that you are constructing more than one HiveContext in a sin
- 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
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