-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade repository-hdfs to Hadoop 3 (#76897)
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
- Loading branch information
Showing
39 changed files
with
461 additions
and
155 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 0 additions & 1 deletion
1
plugins/repository-hdfs/licenses/commons-configuration-1.6.jar.sha1
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
plugins/repository-hdfs/licenses/commons-configuration2-2.7.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
593326399e5fb5e1f986607f06f63c1250ab36b4 |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...licenses/commons-configuration-NOTICE.txt → ...icenses/commons-configuration2-NOTICE.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e47b59c893079b87743cdcfb6f17ca95c08c592c |
1 change: 0 additions & 1 deletion
1
plugins/repository-hdfs/licenses/hadoop-annotations-2.8.5.jar.sha1
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
plugins/repository-hdfs/licenses/hadoop-client-runtime-3.3.1.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f3a55d882328ee87a1054f99d62ba987fa9029a4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5da7f270cb6564e099e0d2d424285a24fca62bd2 |
1 change: 0 additions & 1 deletion
1
plugins/repository-hdfs/licenses/hadoop-hdfs-client-2.8.5.jar.sha1
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
body: | ||
type: hdfs | ||
settings: | ||
uri: "hdfs://localhost:9998" | ||
uri: "hdfs://localhost:@secure_hdfs_port@" | ||
path: "/user/elasticsearch/test/repository_create" | ||
security: | ||
principal: "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
body: | ||
type: hdfs | ||
settings: | ||
uri: "hdfs://localhost:9998" | ||
uri: "hdfs://localhost:@secure_hdfs_port@" | ||
path: "/user/elasticsearch/foo/bar" | ||
security: | ||
principal: "[email protected]" | ||
|
@@ -41,7 +41,7 @@ | |
body: | ||
type: hdfs | ||
settings: | ||
uri: "hdfs://localhost:9998" | ||
uri: "hdfs://localhost:@secure_hdfs_port@" | ||
path: "/user/elasticsearch/foo/bar" | ||
security: | ||
principal: "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
body: | ||
type: hdfs | ||
settings: | ||
uri: "hdfs://localhost:9998" | ||
uri: "hdfs://localhost:@secure_hdfs_port@" | ||
path: "/user/elasticsearch/test/repository_verify" | ||
security: | ||
principal: "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
body: | ||
type: hdfs | ||
settings: | ||
uri: "hdfs://localhost:9998" | ||
uri: "hdfs://localhost:@secure_hdfs_port@" | ||
path: "/user/elasticsearch/test/snapshot" | ||
security: | ||
principal: "[email protected]" | ||
|
@@ -38,7 +38,7 @@ | |
- match: { snapshot.shards.failed : 0 } | ||
|
||
# Remove our snapshot | ||
- do: | ||
- do: | ||
snapshot.delete: | ||
repository: test_snapshot_repository | ||
snapshot: test_snapshot | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
body: | ||
type: hdfs | ||
settings: | ||
uri: "hdfs://localhost:9998" | ||
uri: "hdfs://localhost:@secure_hdfs_port@" | ||
path: "/user/elasticsearch/test/snapshot_get" | ||
security: | ||
principal: "[email protected]" | ||
|
@@ -61,7 +61,7 @@ | |
- match: { snapshots.0.snapshot : test_snapshot_get } | ||
|
||
# Remove our snapshot | ||
- do: | ||
- do: | ||
snapshot.delete: | ||
repository: test_snapshot_get_repository | ||
snapshot: test_snapshot_get | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
body: | ||
type: hdfs | ||
settings: | ||
uri: "hdfs://localhost:9998" | ||
uri: "hdfs://localhost:@secure_hdfs_port@" | ||
path: "/user/elasticsearch/existing/readonly-repository" | ||
security: | ||
principal: "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
body: | ||
type: hdfs | ||
settings: | ||
uri: "hdfs://localhost:9998" | ||
uri: "hdfs://localhost:@secure_hdfs_port@" | ||
path: "/user/elasticsearch/test/restore" | ||
security: | ||
principal: "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
apply plugin: 'elasticsearch.java' | ||
|
||
dependencies { | ||
api "org.apache.hadoop:hadoop-minicluster:3.3.1" | ||
} |
Oops, something went wrong.