Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,24 +160,21 @@ class BuildPlugin implements Plugin<Project> {
println "Using Gradle [${project.gradle.gradleVersion}]"

// Hadoop versions
project.rootProject.ext.hadoopClient = []
project.rootProject.ext.hadoopDistro = project.hasProperty("distro") ? project.getProperty("distro") : "hadoopStable"

project.rootProject.ext.hadoopDistro = project.hasProperty("distro") ? project.getProperty("distro") : "hadoopYarn"
switch (project.rootProject.ext.hadoopDistro) {
// Hadoop YARN/2.0.x
case "hadoopYarn":
String version = project.hadoop2Version
project.rootProject.ext.hadoopVersion = version
project.rootProject.ext.hadoopClient = ["org.apache.hadoop:hadoop-client:$version"]
println "Using Apache Hadoop on YARN [$version]"
project.rootProject.ext.hadoopVersion = project.hadoop2Version
println "Using Apache Hadoop on YARN [$project.hadoop2Version]"
break
case "hadoopStable":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a default: case and throw an error, so we don't accidentally introduce leniency in the future

project.rootProject.ext.hadoopVersion = project.hadoop22Version
println "Using Apache Hadoop [$project.hadoop22Version]"
break

default:
String version = project.hadoop22Version
project.rootProject.ext.hadoopVersion = version
project.rootProject.ext.hadoopClient = ["org.apache.hadoop:hadoop-client:$version"]
println "Using Apache Hadoop [$version]"
throw new GradleException("Invalid [hadoopDistro] setting: [$project.rootProject.ext.hadoopDistro]")
}
project.rootProject.ext.hadoopClient = ["org.apache.hadoop:hadoop-client:$project.rootProject.ext.hadoopVersion"]
}
project.ext.eshadoopVersion = project.rootProject.ext.eshadoopVersion
project.ext.elasticsearchVersion = project.rootProject.ext.elasticsearchVersion
Expand Down
1 change: 0 additions & 1 deletion licenses/hadoop-client-2.2.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/hadoop-client-2.7.6.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1e81abd78494a0f41f36178152c20e2deb3e9e8d
1 change: 0 additions & 1 deletion licenses/hadoop-common-2.2.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/hadoop-common-2.7.6.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b3af0a73d6d3226cd46d4d29c6272a046b90a9f1
1 change: 0 additions & 1 deletion licenses/hadoop-mapreduce-client-core-2.2.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/hadoop-mapreduce-client-core-2.7.6.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb3b92f837656dbbd2ad5d96f02f09af67c59a17
1 change: 0 additions & 1 deletion mr/licenses/hadoop-client-2.2.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions mr/licenses/hadoop-client-2.7.6.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1e81abd78494a0f41f36178152c20e2deb3e9e8d
1 change: 0 additions & 1 deletion mr/licenses/hadoop-common-2.2.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions mr/licenses/hadoop-common-2.7.6.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b3af0a73d6d3226cd46d4d29c6272a046b90a9f1
1 change: 0 additions & 1 deletion mr/licenses/hadoop-mapreduce-client-core-2.2.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions mr/licenses/hadoop-mapreduce-client-core-2.7.6.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb3b92f837656dbbd2ad5d96f02f09af67c59a17