GitHub user vanzin opened a pull request:

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

    [SPARK-23209][core] Allow credential manager to work when Hive not 
available.

    The JVM seems to be doing early binding of classes that the Hive provider
    depends on, causing an error to be thrown before it was caught by the code
    in the class.
    
    The fix wraps the creation of the provider in a try..catch so that
    the provider can be ignored when dependencies are missing.
    
    Added a unit test (which fails without the fix), and also tested
    that getting tokens still works in a real cluster.

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

    $ git pull https://github.com/vanzin/spark SPARK-23209

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

    https://github.com/apache/spark/pull/20399.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 #20399
    
----
commit 63da171cff328782f229854db9257e6c7a458071
Author: Marcelo Vanzin <vanzin@...>
Date:   2018-01-25T18:46:09Z

    [SPARK-23209][core] Allow credential manager to work when Hive not 
available.
    
    The JVM seems to be doing early binding of classes that the Hive provider
    depends on, causing an error to be thrown before it was caught by the code
    in the class.
    
    The fix wraps the creation of the provider in a try..catch so that
    the provider can be ignored when dependencies are missing.
    
    Added a unit test (which fails without the fix), and also tested
    that getting tokens still works in a real cluster.

----


---

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

Reply via email to