sunchao commented on a change in pull request #34830:
URL: https://github.com/apache/spark/pull/34830#discussion_r765070354
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala
##########
@@ -67,7 +67,11 @@ private[hive] object IsolatedClientLoader extends Logging {
case e: RuntimeException if e.getMessage.contains("hadoop") =>
// If the error message contains hadoop, it is probably because
the hadoop
// version cannot be resolved.
- val fallbackVersion = "2.7.4"
+ val fallbackVersion =
VersionUtils.majorMinorPatchVersion(hadoopVersion) match {
Review comment:
maybe we can use `VersionUtils.isHadoop3` here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]