-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Upgrade repository-hdfs to Hadoop 3 #76897
Upgrade repository-hdfs to Hadoop 3 #76897
Conversation
Pinging @elastic/es-core-features (Team:Core/Features) |
@elasticmachine update branch |
I think we should probably split out the Hadoop 3 upgrade from the testing additions for over-the-wire hdfs encryption, just to keep things tidy. |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine run elasticsearch-ci/part-2 |
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.
LGTM, though I think we should make sure to circle back and upgrade HDFS in the searchable snapshot builds at some point in another PR.
plugins/repository-hdfs/build.gradle
Outdated
final int minTestedHadopoVersion = 2; | ||
final int maxTestedHadopoVersion = 3; |
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.
nit: Typo Hadopo
@@ -95,6 +97,7 @@ tasks.named("dependencyLicenses").configure { | |||
|
|||
tasks.named("integTest").configure { | |||
dependsOn(project.tasks.named("bundlePlugin")) | |||
enabled = false |
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.
Should this still be disabled?
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.
oh I see, do we discard this test and just create new ones down below for hadoop v2 + v3?
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.
Yeah, I wanted to be very explicit about hadoop 2 vs hadoop 3. Not sure if this was the best way to go about it, but it works.
Yeah I had the same thought. I changed it locally just to make sure there were no problems (there weren't) but left it at 2 since that's what's currently tested. |
@elasticmachine update branch |
In elastic#76897 the `hadoop-common` module was renamed to `hadoop-client-ide`, but the change wasn't reflected in `elasticsearch.ide.gradle` script. Because of that an IDE import started failing with the `Task with path ':plugins:repository-hdfs:hadoop-common:shadowJar" not found` error. Fix the import by setting the correct module name in the `buildDependencyArtifacts` task.
In #76897 the `hadoop-common` module was renamed to `hadoop-client-ide`, but the change wasn't reflected in `elasticsearch.ide.gradle` script. Because of that an IDE import started failing with the `Task with path ':plugins:repository-hdfs:hadoop-common:shadowJar" not found` error. Fix the import by setting the correct module name in the `buildDependencyArtifacts` task.
In elastic#76897 the `hadoop-common` module was renamed to `hadoop-client-ide`, but the change wasn't reflected in `elasticsearch.ide.gradle` script. Because of that an IDE import started failing with the `Task with path ':plugins:repository-hdfs:hadoop-common:shadowJar" not found` error. Fix the import by setting the correct module name in the `buildDependencyArtifacts` task.
…on fails (#78409) Until recently, if a user configured over-the-wire encryption for repository-hdfs they would get an exception. That was fixed in an upgraded ticket in two ways: (1) jvm permissions were opened up for haddop2, and (2) support for the hadoop 3 hdfs client was added. This commit adds configuration to a couple of integration tests so that they fail if over-the-wire encryption is not working. Relates #76897 #76734
This upgrades the repository-hdfs plugin to hadoop 3. Tests are performed against both hadoop 2 and hadoop 3 HDFS. The advantages of using the hadoop 3 client are: Over-the-wire encryption works (tests coming in an upcoming PR). We don't have to add (or ask customers to add) additional jvm permissions to the elasticsearch jvm It's compatible with java versions higher than java 8 Relates #76897
In elastic#76897 the `hadoop-common` module was renamed to `hadoop-client-ide`, but the change wasn't reflected in `elasticsearch.ide.gradle` script. Because of that an IDE import started failing with the `Task with path ':plugins:repository-hdfs:hadoop-common:shadowJar" not found` error.
In #76897 the `hadoop-common` module was renamed to `hadoop-client-ide`, but the change wasn't reflected in `elasticsearch.ide.gradle` script. Because of that an IDE import started failing with the `Task with path ':plugins:repository-hdfs:hadoop-common:shadowJar" not found` error.
Pinging @elastic/es-distributed (Team:Distributed) |
This upgrades the repository-hdfs plugin to hadoop 3. Tests are performed against both hadoop 2 and hadoop 3 HDFS. The advantages of using the hadoop 3 client are:
Over-the-wire encryption works (tests coming in an upcoming PR).
We don't have to add (or ask customers to add) additional jvm permissions to the elasticsearch jvm
It's compatible with java versions higher than java 8