diff --git a/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/BuildPlugin.groovy index 86285c122..9f5442fba 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/BuildPlugin.groovy @@ -160,24 +160,21 @@ class BuildPlugin implements Plugin { 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": + 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 diff --git a/licenses/hadoop-client-2.2.0.jar.sha1 b/licenses/hadoop-client-2.2.0.jar.sha1 deleted file mode 100644 index a256d5fa7..000000000 --- a/licenses/hadoop-client-2.2.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -8bc8c12f1991d1145e40011c8a8935798948246e \ No newline at end of file diff --git a/licenses/hadoop-client-2.7.6.jar.sha1 b/licenses/hadoop-client-2.7.6.jar.sha1 new file mode 100644 index 000000000..ca970cbee --- /dev/null +++ b/licenses/hadoop-client-2.7.6.jar.sha1 @@ -0,0 +1 @@ +1e81abd78494a0f41f36178152c20e2deb3e9e8d \ No newline at end of file diff --git a/licenses/hadoop-common-2.2.0.jar.sha1 b/licenses/hadoop-common-2.2.0.jar.sha1 deleted file mode 100644 index 9267fbc3b..000000000 --- a/licenses/hadoop-common-2.2.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -a840350e4a1f5483f949ec5e72cfa2c6b2b3cf94 \ No newline at end of file diff --git a/licenses/hadoop-common-2.7.6.jar.sha1 b/licenses/hadoop-common-2.7.6.jar.sha1 new file mode 100644 index 000000000..79e8c537b --- /dev/null +++ b/licenses/hadoop-common-2.7.6.jar.sha1 @@ -0,0 +1 @@ +b3af0a73d6d3226cd46d4d29c6272a046b90a9f1 \ No newline at end of file diff --git a/licenses/hadoop-mapreduce-client-core-2.2.0.jar.sha1 b/licenses/hadoop-mapreduce-client-core-2.2.0.jar.sha1 deleted file mode 100644 index 66b7e7139..000000000 --- a/licenses/hadoop-mapreduce-client-core-2.2.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -4be274d45f35543d3c4dd8e2bfed2cebc56696c7 \ No newline at end of file diff --git a/licenses/hadoop-mapreduce-client-core-2.7.6.jar.sha1 b/licenses/hadoop-mapreduce-client-core-2.7.6.jar.sha1 new file mode 100644 index 000000000..c8291a1d5 --- /dev/null +++ b/licenses/hadoop-mapreduce-client-core-2.7.6.jar.sha1 @@ -0,0 +1 @@ +fb3b92f837656dbbd2ad5d96f02f09af67c59a17 \ No newline at end of file diff --git a/mr/licenses/hadoop-client-2.2.0.jar.sha1 b/mr/licenses/hadoop-client-2.2.0.jar.sha1 deleted file mode 100644 index a256d5fa7..000000000 --- a/mr/licenses/hadoop-client-2.2.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -8bc8c12f1991d1145e40011c8a8935798948246e \ No newline at end of file diff --git a/mr/licenses/hadoop-client-2.7.6.jar.sha1 b/mr/licenses/hadoop-client-2.7.6.jar.sha1 new file mode 100644 index 000000000..ca970cbee --- /dev/null +++ b/mr/licenses/hadoop-client-2.7.6.jar.sha1 @@ -0,0 +1 @@ +1e81abd78494a0f41f36178152c20e2deb3e9e8d \ No newline at end of file diff --git a/mr/licenses/hadoop-common-2.2.0.jar.sha1 b/mr/licenses/hadoop-common-2.2.0.jar.sha1 deleted file mode 100644 index 9267fbc3b..000000000 --- a/mr/licenses/hadoop-common-2.2.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -a840350e4a1f5483f949ec5e72cfa2c6b2b3cf94 \ No newline at end of file diff --git a/mr/licenses/hadoop-common-2.7.6.jar.sha1 b/mr/licenses/hadoop-common-2.7.6.jar.sha1 new file mode 100644 index 000000000..79e8c537b --- /dev/null +++ b/mr/licenses/hadoop-common-2.7.6.jar.sha1 @@ -0,0 +1 @@ +b3af0a73d6d3226cd46d4d29c6272a046b90a9f1 \ No newline at end of file diff --git a/mr/licenses/hadoop-mapreduce-client-core-2.2.0.jar.sha1 b/mr/licenses/hadoop-mapreduce-client-core-2.2.0.jar.sha1 deleted file mode 100644 index 66b7e7139..000000000 --- a/mr/licenses/hadoop-mapreduce-client-core-2.2.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -4be274d45f35543d3c4dd8e2bfed2cebc56696c7 \ No newline at end of file diff --git a/mr/licenses/hadoop-mapreduce-client-core-2.7.6.jar.sha1 b/mr/licenses/hadoop-mapreduce-client-core-2.7.6.jar.sha1 new file mode 100644 index 000000000..c8291a1d5 --- /dev/null +++ b/mr/licenses/hadoop-mapreduce-client-core-2.7.6.jar.sha1 @@ -0,0 +1 @@ +fb3b92f837656dbbd2ad5d96f02f09af67c59a17 \ No newline at end of file