spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Chacko - Catalyst Consulting <jacob.cha...@catalystconsulting.be>
Subject Create table error from Hive in spark-assembly-1.0.2.jar
Date Sun, 26 Oct 2014 07:36:33 GMT
Hi All

We are trying to create a table in Hive from spark-assembly-1.0.2.jar file.


CREATE TABLE IF NOT EXISTS src (key INT, value STRING)

  JavaSparkContext sc = CC2SparkManager.sharedInstance().getSparkContext();
  JavaHiveContext sqlContext = new JavaHiveContext(sc);
  sqlContext.sql("CREATE TABLE  srcd (key INT, value STRING)");

On Spark 1.1 we get the following error:

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException:
Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

On Spark 1.0.2 we get the following error:

 failure: ``UNCACHE'' expected but identifier CREATE found


Could you help understand why we get this error

Thanks
Jacob


Mime
View raw message