-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28723][SQL] Upgrade to Hive 2.3.6 for HiveMetastore Client and Hadoop-3.2 profile #25443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 16 commits
540d6da
6821aa5
e6508c0
2ebdcb9
0085ad7
1c1143f
8435110
77a70ae
6fdf309
b984414
593a154
8b04e78
59554f9
17285a6
9254dfb
0ac0b30
500b4a7
0caa93f
24bb028
46322df
3856828
9defec2
a9cbd7f
ff4783c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,7 +132,7 @@ | |
| <hive.classifier></hive.classifier> | ||
| <!-- Version used in Maven Hive dependency --> | ||
| <hive.version>1.2.1.spark2</hive.version> | ||
| <hive23.version>2.3.5</hive23.version> | ||
| <hive23.version>2.3.6</hive23.version> | ||
| <!-- Version used for internal directory structure --> | ||
| <hive.version.short>1.2.1</hive.version.short> | ||
| <!-- note that this should be compatible with Kafka brokers version 0.10 and up --> | ||
|
|
@@ -252,6 +252,18 @@ | |
| <enabled>false</enabled> | ||
| </snapshots> | ||
| </repository> | ||
| <!-- TODO Remove this once Hive 2.3.6 released --> | ||
| <repository> | ||
| <id>staged</id> | ||
| <name>staged-releases</name> | ||
| <url>https://repository.apache.org/content/repositories/staging/</url> | ||
|
||
| <releases> | ||
| <enabled>true</enabled> | ||
| </releases> | ||
| <snapshots> | ||
| <enabled>true</enabled> | ||
|
||
| </snapshots> | ||
| </repository> | ||
dongjoon-hyun marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </repositories> | ||
| <pluginRepositories> | ||
| <pluginRepository> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,12 @@ | |
|
|
||
| package org.apache.spark.sql.hive.thriftserver | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. During JDK11 testing and review, we has been skipped renaming in order to focus JDK11 related stuff by minimizing PR diff. We may need to rename this src file directory cc @gatorsmile , @srowen |
||
|
|
||
| import java.security.AccessController | ||
|
|
||
| import scala.collection.JavaConverters._ | ||
|
|
||
| import org.apache.commons.lang3.StringUtils | ||
| import org.apache.hadoop.hive.ql.exec.AddToClassPathAction | ||
| import org.apache.hadoop.hive.ql.session.SessionState | ||
| import org.apache.hadoop.hive.serde2.thrift.Type | ||
| import org.apache.hive.service.cli.{RowSet, RowSetFactory, TableSchema} | ||
|
|
@@ -51,6 +57,11 @@ private[thriftserver] object ThriftserverShimUtils { | |
|
|
||
| private[thriftserver] def toJavaSQLType(s: String): Int = Type.getType(s).toJavaSQLType | ||
|
|
||
| private[thriftserver] def addToClassPath(loader: ClassLoader, auxJars: String): ClassLoader = { | ||
| val addAction = new AddToClassPathAction(loader, StringUtils.split(auxJars, ",").toList.asJava) | ||
| AccessController.doPrivileged(addAction) | ||
| } | ||
|
|
||
| private[thriftserver] val testedProtocolVersions = Seq( | ||
| HIVE_CLI_SERVICE_PROTOCOL_V1, | ||
| HIVE_CLI_SERVICE_PROTOCOL_V2, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.