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
This commit is contained in:
Alejandro Abdelnur 2012-08-06 18:14:47 +00:00
parent 294b514596
commit 117145f1ad
7 changed files with 30 additions and 6 deletions

View File

@ -156,7 +156,15 @@
<!-- use slf4j from common to avoid multiple binding warnings --> <!-- use slf4j from common to avoid multiple binding warnings -->
<exclude>org.slf4j:slf4j-api</exclude> <exclude>org.slf4j:slf4j-api</exclude>
<exclude>org.slf4j:slf4j-log4j12</exclude> <exclude>org.slf4j:slf4j-log4j12</exclude>
<exclude>org.hsqldb:hsqldb</exclude>
</excludes> </excludes>
</dependencySet> </dependencySet>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>/share/hadoop/${hadoop.component}/lib-examples</outputDirectory>
<includes>
<include>org.hsqldb:hsqldb</include>
</includes>
</dependencySet>
</dependencySets> </dependencySets>
</assembly> </assembly>

View File

@ -159,6 +159,8 @@ Branch-2 ( Unreleased changes )
MAPREDUCE-4342. Distributed Cache gives inconsistent result if cache files MAPREDUCE-4342. Distributed Cache gives inconsistent result if cache files
get deleted from tasktracker. (mayank_bansal via tucu) 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 Release 2.1.0-alpha - Unreleased
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -94,7 +94,6 @@
<dependency> <dependency>
<groupId>org.hsqldb</groupId> <groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId> <artifactId>hsqldb</artifactId>
<version>2.0.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -98,7 +98,7 @@
<dependency> <dependency>
<groupId>org.hsqldb</groupId> <groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId> <artifactId>hsqldb</artifactId>
<version>2.0.0</version> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -65,6 +65,16 @@ import org.hsqldb.server.Server;
* *
* When called with no arguments the program starts a local HSQLDB server, and * When called with no arguments the program starts a local HSQLDB server, and
* uses this database for storing/retrieving the data. * uses this database for storing/retrieving the data.
* <br>
* This program requires some additional configuration relating to HSQLDB.
* The the hsqldb jar should be added to the classpath:
* <br>
* <code>export HADOOP_CLASSPATH=share/hadoop/mapreduce/lib-examples/hsqldb-2.0.0.jar</code>
* <br>
* And the hsqldb jar should be included with the <code>-libjars</code>
* argument when executing it with hadoop:
* <br>
* <code>-libjars share/hadoop/mapreduce/lib-examples/hsqldb-2.0.0.jar</code>
*/ */
public class DBCountPageView extends Configured implements Tool { public class DBCountPageView extends Configured implements Tool {

View File

@ -162,7 +162,7 @@
<dependency> <dependency>
<groupId>org.hsqldb</groupId> <groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId> <artifactId>hsqldb</artifactId>
<version>2.0.0</version> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -655,6 +655,11 @@
<!-- Use the version needed by maven-clover-plugin --> <!-- Use the version needed by maven-clover-plugin -->
<version>3.0.2</version> <version>3.0.2</version>
</dependency> </dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.0.0</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>