GitHub user liancheng opened a pull request:

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

    [SPARK-3791][SQL][WIP] Provides Spark version and Hive version in 
HiveThriftServer2

    This PR overrides the `GetInfo` Hive Thrift API to provide correct version 
information. Another property `spark.sql.hive.version` is added to reveal the 
underlying Hive version. These are generally useful for Spark SQL ODBC driver 
providers. The Spark version information is extracted from the jar manifest. 
Also took the chance to remove the `SET -v` hack, which was a workaround for 
Simba ODBC driver connectivity.
    
    TODO
    
    - [ ] Find a general way to figure out Hive (or even any dependency) 
version.
    
      For Maven builds, we can retrieve the version information from the 
META-INF/maven directory within the assembly jar. But this doesn't work for SBT 
builds. Some other possible approaches can be found in this [blog 
post](http://blog.soebes.de/blog/2014/01/02/version-information-into-your-appas-with-maven/).

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

    $ git pull https://github.com/liancheng/spark get-info

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

    https://github.com/apache/spark/pull/2843.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 #2843
    
----
commit dc9438b68fca834c5ddce2918f8a1474f67d33d9
Author: Cheng Lian <[email protected]>
Date:   2014-10-18T09:09:06Z

    Overrides Hive GetInfo Thrift API and adds Hive version property

commit 9799b505e63793beced7ed79793739c011ee4547
Author: Cheng Lian <[email protected]>
Date:   2014-10-19T05:52:26Z

    Removes the Simba ODBC "SET -v" hack

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to