GitHub user adrian-wang opened a pull request:

    https://github.com/apache/spark/pull/9589

    [SPARK-11624][SQL]fix commands that need hive to exec

    spark-sql> !echo "test";
    Exception in thread "main" java.lang.ClassCastException: 
org.apache.hadoop.hive.ql.session.SessionState cannot be cast to 
org.apache.hadoop.hive.cli.CliSessionState
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:112)
        at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.processCmd(SparkSQLCLIDriver.scala:301)
        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:376)
        at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver$.main(SparkSQLCLIDriver.scala:242)
        at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.main(SparkSQLCLIDriver.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:691)
        at 
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
        at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/adrian-wang/spark clicommand

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/9589.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #9589
    
----
commit e1716e22a6fd50f35cc2c5e8362ee0828c9622c9
Author: Daoyuan Wang <daoyuan.w...@intel.com>
Date:   2015-11-10T07:49:24Z

    fix commands that need hive to exec

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to