diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2017-03-03 18:44:31 -0800 |
---|---|---|
committer | Xiao Li <gatorsmile@gmail.com> | 2017-03-03 18:44:31 -0800 |
commit | 9e5b4ce727cf262a14a411efded85ee1e50a88ed (patch) | |
tree | bf003d87b595c5256c9e1a9f0321a1973ae1520a /sql/core/src | |
parent | a6a7a95e2f3482d84fcd744713e43f80ea90e33a (diff) | |
download | spark-9e5b4ce727cf262a14a411efded85ee1e50a88ed.tar.gz spark-9e5b4ce727cf262a14a411efded85ee1e50a88ed.tar.bz2 spark-9e5b4ce727cf262a14a411efded85ee1e50a88ed.zip |
[SPARK-19084][SQL] Ensure context class loader is set when initializing Hive.
A change in Hive 2.2 (most probably HIVE-13149) causes this code path to fail,
since the call to "state.getConf.setClassLoader" does not actually change the
context's class loader. Spark doesn't yet officially support Hive 2.2, but some
distribution-specific metastore client libraries may have that change (as certain
versions of CDH already do), and this also makes it easier to support 2.2 when it
comes out.
Tested with existing unit tests; we've also used this patch extensively with Hive
metastore client jars containing the offending patch.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes #17154 from vanzin/SPARK-19804.
Diffstat (limited to 'sql/core/src')
0 files changed, 0 insertions, 0 deletions