From 70fb7b4ea8fd7647e4a4ddca4df71521b749521c Mon Sep 17 00:00:00 2001 From: tedyu Date: Mon, 11 Aug 2014 10:21:13 -0700 Subject: [PATCH 1/4] SPARK-1297 Upgrade HBase dependency to 0.98 --- examples/pom.xml | 103 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 76 insertions(+), 27 deletions(-) diff --git a/examples/pom.xml b/examples/pom.xml index 8c4c128bb484d..d8697c9a05d34 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -45,6 +45,39 @@ + + hbase-hadoop2 + + + hbase.profile + hadoop2 + + + + 2.5.0 + 0.98.4-hadoop2 + + + + + + + + hbase-hadoop1 + + + !hbase.profile + + + + 0.98.4-hadoop1 + + + + + + + @@ -109,37 +142,53 @@ spark-streaming-mqtt_${scala.binary.version} ${project.version} - - org.apache.hbase - hbase - ${hbase.version} - - - asm - asm - - - org.jboss.netty - netty - - - io.netty - netty - - - commons-logging - commons-logging - - - org.jruby - jruby-complete - - - org.eclipse.jetty jetty-server + + org.apache.hbase + hbase-testing-util + ${hbase.version} + + + org.jruby + jruby-complete + + + + + org.apache.hbase + hbase-protocol + ${hbase.version} + + + org.apache.hbase + hbase-common + ${hbase.version} + + + org.apache.hbase + hbase-client + ${hbase.version} + + + org.apache.hbase + hbase-server + ${hbase.version} + + + org.apache.hbase + hbase-hadoop-compat + ${hbase.version} + + + org.apache.hbase + hbase-hadoop-compat + ${hbase.version} + test-jar + test + com.twitter algebird-core_${scala.binary.version} From 759a79a7c6f9df87c447e7115654d814e05290f6 Mon Sep 17 00:00:00 2001 From: tedyu Date: Mon, 11 Aug 2014 10:53:08 -0700 Subject: [PATCH 2/4] SPARK-1297 Upgrade HBase dependency to 0.98, add exclusions --- examples/pom.xml | 75 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 66 insertions(+), 9 deletions(-) diff --git a/examples/pom.xml b/examples/pom.xml index d8697c9a05d34..894c43791d882 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -54,13 +54,8 @@ - 2.5.0 0.98.4-hadoop2 - - - - hbase-hadoop1 @@ -72,10 +67,6 @@ 0.98.4-hadoop1 - - - - @@ -171,11 +162,77 @@ org.apache.hbase hbase-client ${hbase.version} + + io.netty + netty + org.apache.hbase hbase-server ${hbase.version} + + + org.apache.hadoop + hadoop-core + + + org.apache.hadoop + hadoop-client + + + org.apache.hadoop + hadoop-mapreduce-client-jobclient + + + org.apache.hadoop + hadoop-mapreduce-client-core + + + org.apache.hadoop + hadoop-auth + + + org.apache.hadoop + hadoop-annotations + + + org.apache.hadoop + hadoop-hdfs + + + org.apache.hbase + hbase-hadoop1-compat + + + org.apache.commons + commons-math + + + com.sun.jersey + jersey-core + + + org.slf4j + slf4j-api + + + com.sun.jersey + jersey-server + + + com.sun.jersey + jersey-core + + + com.sun.jersey + jersey-json + + + + commons-io + commons-io + org.apache.hbase From cd58437897bf02b644c2171404ccffae5d12a2be Mon Sep 17 00:00:00 2001 From: tedyu Date: Mon, 11 Aug 2014 15:57:46 -0700 Subject: [PATCH 3/4] SPARK-1297 Upgrade HBase dependency to 0.98 - add description to building-with-maven.md --- docs/building-with-maven.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/building-with-maven.md b/docs/building-with-maven.md index 672d0ef114f6d..f8bcd2b237613 100644 --- a/docs/building-with-maven.md +++ b/docs/building-with-maven.md @@ -71,6 +71,9 @@ For Apache Hadoop 2.x, 0.23.x, Cloudera CDH, and other Hadoop versions with YARN +To build against HBase 0.98.x releases, "hbase-hadoop1" is the default profile. This means hbase-0.98.x-hadoop1 would be used. +When building against hadoop-2, "hbase-hadoop2" profile should be specified. + Examples: {% highlight bash %} From 79cf281f6daac1bdf66716ba33e6afdf2b7006ac Mon Sep 17 00:00:00 2001 From: tedyu Date: Sat, 16 Aug 2014 11:11:01 -0700 Subject: [PATCH 4/4] Add tag --- examples/pom.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/pom.xml b/examples/pom.xml index 894c43791d882..9ae50cd132020 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -162,10 +162,12 @@ org.apache.hbase hbase-client ${hbase.version} - + + io.netty netty - + + org.apache.hbase @@ -233,6 +235,7 @@ commons-io commons-io + org.apache.hbase