-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Remove Hive 2 #10996
Remove Hive 2 #10996
Conversation
b87a7e6
to
f55a620
Compare
mr/src/main/java/org/apache/iceberg/mr/hive/serde/objectinspector/IcebergObjectInspector.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/apache/iceberg/mr/hive/serde/objectinspector/TestIcebergObjectInspector.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/apache/iceberg/mr/hive/serde/objectinspector/TestIcebergObjectInspector.java
Show resolved
Hide resolved
d7398be
to
e724fd0
Compare
mr/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java
Show resolved
Hide resolved
I expect that there will be users trying to use HiveCatalog with old Hive versions. Maybe we can throw an exception in the Is HiveVersion used anywhere after this change? |
461de3c
to
f1c2afa
Compare
private static final DynConstructors.Ctor<AbstractMapredIcebergRecordReader> | ||
HIVE_VECTORIZED_RECORDREADER_CTOR; | ||
private static DynConstructors.Ctor<AbstractMapredIcebergRecordReader> | ||
hiveVectorizedRecordreaderCtor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why this is non-final now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HiveIcebergVectorizedRecordReader
is in iceberg-hive3
module and can not be loaded in iceberg-mr
tests. Hence, we need to catch the exception and reassign it to null
. Same for HiveVectorizedReader
.
@@ -213,11 +212,11 @@ private static final class IcebergRecordReader<T> extends RecordReader<Void, T> | |||
|
|||
private static final String HIVE_VECTORIZED_READER_CLASS = | |||
"org.apache.iceberg.mr.hive.vector.HiveVectorizedReader"; | |||
private static final DynMethods.StaticMethod HIVE_VECTORIZED_READER_BUILDER; | |||
private static DynMethods.StaticMethod hiveVectorizedReaderBuilder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above. why is this non-final now?
@pvary We don't expect them to use iceberg 1.8+ with old Hive versions, right? |
6 tests in
It's been back-ported to hive 3.1, but there's no new release yet. @pvary @nastra thoughts? |
I meant, that they will try to do it, and it might be nice to throw an exception with a meaningful message... |
ce3f136
to
27befad
Compare
Which tests are failing? I'm afraid that most of the Hive execution based tests use HiveShell, which is not able to start. This would mean that we effectively remove Hive execution testing. BTW I see Spark test failures. Old Spark used embedded Hive 1.2. That was the reason for some of the Hive version check in the HiveTableOpereation code. You might need to check that too. Thanks for working on this! |
dd01844
to
cbdf523
Compare
cbdf523
to
5ad906d
Compare
@pvary The failed tests list
I've restored checking of hive version in
Do we have these testing for Hive 3 on main branch now? |
I think these tests should be running fine with Java 8. The issue is that with Java 11 we can not use this Hive 3 release. |
Let me consult with the Hive folks and come back soon with a proposal. |
I have learned that there are no Hive 3 releases are planned. So these tests will not work with Hive3. I would like to see the Hive connector upgraded to Hive 4 which supports Java 11, and based on the informations I have learned from the Hive folks, Hive 4.1.0 will support Java 17 too. @gaborkaszab mentioned that he could make some time to check if the upgrade is possible - if that is something that the community thinks would be useful. I would suggest to discuss this with a wide audience on the dev list before starting to work on it. |
@pvary @nastra @Fokko @gaborkaszab I've sent out a discussion email. Please share your thoughts there. |
We have a consensus on the dev list to drop hive-runtime and upgrade to Hive 4. I've submitted #11750 and will rework this PR once that's in. |
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
This PR removes Hive 2 dependency
iceberg-mr
and merge all Hive related codes intoiceberg-hive3