spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <>
Subject [jira] [Resolved] (SPARK-9701) allow not automatically using HiveContext with spark-shell when hive support built in
Date Sat, 28 Nov 2015 19:49:10 GMT


Sean Owen resolved SPARK-9701.
    Resolution: Duplicate

Since the other has a PR, closing this one.

> allow not automatically using HiveContext with spark-shell when hive support built in
> -------------------------------------------------------------------------------------
>                 Key: SPARK-9701
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.1
>            Reporter: Thomas Graves
> I build the spark jar with hive support as most of our grids have Hive.  We were bringing
up a new YARN cluster that didn't have hive installed on it yet which results in the spark-shell
failing to launch:
> java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
>         at org.apache.hadoop.hive.ql.session.SessionState.start(
>         at org.apache.spark.sql.hive.client.ClientWrapper.<init>(ClientWrapper.scala:116)
>         at org.apache.spark.sql.hive.HiveContext.executionHive$lzycompute(HiveContext.scala:163)
>         at org.apache.spark.sql.hive.HiveContext.executionHive(HiveContext.scala:161)
>         at org.apache.spark.sql.hive.HiveContext.<init>(HiveContext.scala:168)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
>         at java.lang.reflect.Constructor.newInstance(
>         at org.apache.spark.repl.SparkILoop.createSQLContext(SparkILoop.scala:1028)
> It would be nice to have a config or something  to tell it not to instantiate a HiveContext

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message