Uh oh!
There was an error while loading. Please reload this page.
HIVE-25996: Backport HIVE-25098 to branch-2.3 - #3066
Conversation
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Just a question: What about branch-3.1 and branch-3.0? Are these patches released officially in any Apache Hive artifacts after vote?
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
wangyum
commented
Jun 17, 2022
cc @sunchao |
pan3793
commented
Jun 17, 2022
Thanks to the work done by @wangyum, Hive 2.3 is widely used in the industry and adopted by many downstream projects such as Apache Spark. A security patch release is greatly appreciated. |
bgmarsh
commented
Aug 3, 2022
Are there still plans to get this into the Hive 2.3 branch? |
pan3793
commented
Jul 16, 2023
cc @sunchao this is the first step of upgrading thrift to get rid of CVE (0.14.0+), as we are planning Hive 2.3.10, please reopen this PR. |
sunchao
commented
Jul 16, 2023
@wangyum could you rebase the PR? |
There are around 30~40 tests failure in the latest branch-2.3, some of them are flaky. Jenkins reports 41 test failures for this PR, which seems reasonable. |
pan3793
left a comment
There was a problem hiding this comment.
Verified thrift-generated files locally with
# install thrift compiler 0.14.1 at /home/chengpan/bin/thrift-0.14.1/compiler/cpp/cmake-build
# provide share/fb303/if/fb303.thrift
mvn -pl metastore -Pthriftif -Dthrift.home=/home/chengpan/bin/thrift-0.14.1/compiler/cpp/cmake-build compile -am
Without fb303.thrift the compile command failed with the following error message, is it expected?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (generate-thrift-sources) on project hive-metastore: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] /home/chengpan/Projects/hive-2.3/metastore/target/antrun/build-main.xml:15: exec returned: 1
[ERROR] around Ant part ...<for param="thrift.file">... @ 9:28 in /home/chengpan/Projects/hive-2.3/metastore/target/antrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :hive-metastore
wangyum
commented
Jul 24, 2023
@pan3793 It should throw It works if add fb303.thrift to |
Yes, I fixed it by adding |
sunchao
commented
Jul 28, 2023
@wangyum could you resolve the conflict? I'll merge this after it. |
wangyum
commented
Jul 28, 2023
Thank you @sunchao. Conflict resolved. |
sunchao
commented
Jul 28, 2023
Thanks! merged to branch-2.3 |
This reverts commit 8be7466.
Madhukar525722
commented
Feb 19, 2025
Hi @wangyum@pan3793@sunchao |

What changes were proposed in this pull request?
Backport HIVE-25098 to branch-2.3.
Why are the changes needed?
Make the downstreams easy to upgrade their Thrift version.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Local test.