From 117145f1adca05e2242ee851066479dba3981653 Mon Sep 17 00:00:00 2001 From: Alejandro Abdelnur Date: Mon, 6 Aug 2012 18:14:47 +0000 Subject: [PATCH] MAPREDUCE-4498. Remove hsqldb jar from Hadoop runtime classpath. (rkanter via tucu) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1369906 13f79535-47bb-0310-9956-ffa450edef68 --- .../resources/assemblies/hadoop-mapreduce-dist.xml | 14 +++++++++++--- hadoop-mapreduce-project/CHANGES.txt | 2 ++ .../hadoop-mapreduce-client-jobclient/pom.xml | 1 - .../hadoop-mapreduce-examples/pom.xml | 2 +- .../apache/hadoop/examples/DBCountPageView.java | 10 ++++++++++ hadoop-mapreduce-project/pom.xml | 2 +- hadoop-project/pom.xml | 5 +++++ 7 files changed, 30 insertions(+), 6 deletions(-) diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-mapreduce-dist.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-mapreduce-dist.xml index a57bda8feb..41d0f50fa9 100644 --- a/hadoop-assemblies/src/main/resources/assemblies/hadoop-mapreduce-dist.xml +++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-mapreduce-dist.xml @@ -153,10 +153,18 @@ org.apache.hadoop:hadoop-common org.apache.hadoop:hadoop-hdfs - - org.slf4j:slf4j-api - org.slf4j:slf4j-log4j12 + + org.slf4j:slf4j-api + org.slf4j:slf4j-log4j12 + org.hsqldb:hsqldb + + false + /share/hadoop/${hadoop.component}/lib-examples + + org.hsqldb:hsqldb + + diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 10e5b8c97e..805ed628e8 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -159,6 +159,8 @@ Branch-2 ( Unreleased changes ) MAPREDUCE-4342. Distributed Cache gives inconsistent result if cache files get deleted from tasktracker. (mayank_bansal via tucu) + MAPREDUCE-4498. Remove hsqldb jar from Hadoop runtime classpath. (rkanter via tucu) + Release 2.1.0-alpha - Unreleased INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/pom.xml index b14ab2686c..65e5f1038e 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/pom.xml +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/pom.xml @@ -94,7 +94,6 @@ org.hsqldb hsqldb - 2.0.0 test diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml index 03d0802a2b..4593ba0855 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml +++ b/hadoop-mapreduce-project/hadoop-mapreduce-examples/pom.xml @@ -98,7 +98,7 @@ org.hsqldb hsqldb - 2.0.0 + provided diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/DBCountPageView.java b/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/DBCountPageView.java index 1b4dc90236..5850242f88 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/DBCountPageView.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/DBCountPageView.java @@ -65,6 +65,16 @@ * * When called with no arguments the program starts a local HSQLDB server, and * uses this database for storing/retrieving the data. + *
+ * This program requires some additional configuration relating to HSQLDB. + * The the hsqldb jar should be added to the classpath: + *
+ * export HADOOP_CLASSPATH=share/hadoop/mapreduce/lib-examples/hsqldb-2.0.0.jar + *
+ * And the hsqldb jar should be included with the -libjars + * argument when executing it with hadoop: + *
+ * -libjars share/hadoop/mapreduce/lib-examples/hsqldb-2.0.0.jar */ public class DBCountPageView extends Configured implements Tool { diff --git a/hadoop-mapreduce-project/pom.xml b/hadoop-mapreduce-project/pom.xml index d738f2377a..27236f5283 100644 --- a/hadoop-mapreduce-project/pom.xml +++ b/hadoop-mapreduce-project/pom.xml @@ -162,7 +162,7 @@ org.hsqldb hsqldb - 2.0.0 + compile diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index e2ca6d4d09..e7825c12af 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -655,6 +655,11 @@ 3.0.2 + + org.hsqldb + hsqldb + 2.0.0 +