Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[SPARK-23433][SPARK-25250] [CORE][BRANCH-2.3] Later created TaskSet should learn about the finished partitions #24006
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
Uh oh!
There was an error while loading. Please reload this page.
[SPARK-23433][SPARK-25250] [CORE][BRANCH-2.3] Later created TaskSet should learn about the finished partitions #24006
Changes from 1 commit
068c4aef48d624d0f30e354aeae7a06fc459b0f6f58bb6c22a9700cbfec43fe49a6c2b66289a3e1c0ab13a024a4dc24da2b37e76fe56266a1cc5f682e0c346e4e96f930aaa5a21800b8181945436f1d5e15829454d4548abf5868763e1da1a55de38470cacda2f65ebe6bf3257f1708ad3255a5a7d378ed4261049d63e54b8dbfcc50cdb41d687d978928de33a4b6f3a1e9640db538b26e1f5e00f534d38ff4b973c0af791cba050bc7ee75e5cc5f664c72b44df06b472eb97c19542f5307499e86457a132429259cf375fb3726daf9a2b0adae352ae31b4767be70e2d0280abdb1f3ccbd6bfacf5bc948740a23d6a59992740606efa552c3d5f340f71eb7d4bad56bbaa51c0725ea27bfc3df455b187a88080c9314b50d7136588e9fb70f47d465d89bfc55bb426ec56930f48e66f3f97306ac704c6520a0a7e41b9b35b9787790b4dc822529a04030856b8234191e6032f6d9ea01e369702bb68bde4679cb9d72fcc9bd642c1fddf5983828db935f306e881b072717dbf0b9331e46ec9db81fd31dab71d22379e84922e55b8b6b45ad644a4b5781860e56bc18688d3d8ec5ffdb9c0419ac9f36a2a54a509dd34c6d742d1575fea1f3bbb7c0c1e3d102b51077b5da37e319a62dad5c487edfdfc8ccc47812717ba9674d08cbb228e2381d6026d893af40e4c7f13565beb7838073408f08d7723f7102aee5324a85182bc85b3d1b1b1e15998d87896b0726bc561b301c353d3285cef11a719ff7ad7a35878fbf3ee0a05cf93afb3a253aeb3d3e0160b632c0d949e1eb80c7d82b7a59618550408e90e4dd10fb830c8b6504e62010d6de5f48996a5a12e96ba844ee463a00589868236f641899dd23772d937930fbd20558f71576bd7bccefa535c4235832812ea22a11bb4aeb81a7d50aed9d3beaacf20d2acbfb31c3d759f70a99ba30a811b30b82a3d618d2764fce5cbb5217038fe12b9052a5e87c2c11b6c46496d063ee20b749001511e42a8229518c138bb5ea9338319ba75a50ae3c0fc6d08debdbdbf3cdeaae64e5bb88067b98d48c7de3b5c423e35d4ded902c373a627f98aee4a89f601f6391e1ad18faa94a4b46537d15ca5d22da4d6ea2c66fd9c378458079c7866938ade42bb6dbd23abf45d97f8ed402e9890abce8467f13fd055d5a190d0c9ffd38a113214b6b241df43f6691c0436db45dae1b44c3ece965c3266288b70980877b8dbdfde0c6b013c57File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…adoop versions unsupported by Hive fork ## What changes were proposed in this pull request? Currently, even if I explicitly disable Hive support in SparkR session as below: ```r sparkSession <- sparkR.session("local[4]", "SparkR", Sys.getenv("SPARK_HOME"), enableHiveSupport = FALSE) ``` produces when the Hadoop version is not supported by our Hive fork: ``` java.lang.reflect.InvocationTargetException ... Caused by: java.lang.IllegalArgumentException: Unrecognized Hadoop major version number: 3.1.1.3.1.0.0-78 at org.apache.hadoop.hive.shims.ShimLoader.getMajorVersion(ShimLoader.java:174) at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:139) at org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:100) at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:368) ... 43 more Error in handleErrors(returnStatus, conn) : java.lang.ExceptionInInitializerError at org.apache.hadoop.hive.conf.HiveConf.<clinit>(HiveConf.java:105) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.spark.util.Utils$.classForName(Utils.scala:193) at org.apache.spark.sql.SparkSession$.hiveClassesArePresent(SparkSession.scala:1116) at org.apache.spark.sql.api.r.SQLUtils$.getOrCreateSparkSession(SQLUtils.scala:52) at org.apache.spark.sql.api.r.SQLUtils.getOrCreateSparkSession(SQLUtils.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ``` The root cause is that: ``` SparkSession.hiveClassesArePresent ``` check if the class is loadable or not to check if that's in classpath but `org.apache.hadoop.hive.conf.HiveConf` has a check for Hadoop version as static logic which is executed right away. This throws an `IllegalArgumentException` and that's not caught: https://github.com/apache/spark/blob/36edbac1c8337a4719f90e4abd58d38738b2e1fb/sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala#L1113-L1121 So, currently, if users have a Hive built-in Spark with unsupported Hadoop version by our fork (namely 3+), there's no way to use SparkR even though it could work. This PR just propose to change the order of bool comparison so that we can don't execute `SparkSession.hiveClassesArePresent` when: 1. `enableHiveSupport` is explicitly disabled 2. `spark.sql.catalogImplementation` is `in-memory` so that we **only** check `SparkSession.hiveClassesArePresent` when Hive support is explicitly enabled by short circuiting. ## How was this patch tested? It's difficult to write a test since we don't run tests against Hadoop 3 yet. See #21588. Manually tested. Closes #23356 from HyukjinKwon/SPARK-26422. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org> (cherry picked from commit 305e9b5) Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing