Thanks a lot! I've fixed this issue by set:
spark.sql.hive.metastore.version = 0.13.1
spark.sql.hive.metastore.jars = maven
Yin Huai-2 wrote
> Yes, Spark 1.5 use Hive 1.2's metastore client by default. You can change
> it by putting the following settings in your spark conf.
>
>
Can you open a JIRA?
On Wed, Sep 9, 2015 at 11:11 PM, StanZhai wrote:
> After upgrade spark from 1.4.1 to 1.5.0, I encountered the following
> exception when use alter table statement in HiveContext:
>
> The sql is: ALTER TABLE a RENAME TO b
>
> The exception is:
>
> FAILED:
Thank you for the swift reply!
The version of my hive metastore server is 0.13.1, I've build spark use sbt
like this:
build/sbt -Pyarn -Phadoop-2.4 -Phive -Phive-thriftserver assembly
Is spark 1.5 bind the hive client version of 1.2 by default?
--
View this message in context:
Yes, Spark 1.5 use Hive 1.2's metastore client by default. You can change
it by putting the following settings in your spark conf.
spark.sql.hive.metastore.version = 0.13.1
spark.sql.hive.metastore.jars = maven or the path of your hive 0.13 jars
and hadoop jars
For spark.sql.hive.metastore.jars,
After upgrade spark from 1.4.1 to 1.5.0, I encountered the following
exception when use alter table statement in HiveContext:
The sql is: ALTER TABLE a RENAME TO b
The exception is:
FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table.