From 53c928a8de020bd336ae6f33327d448d95e003df Mon Sep 17 00:00:00 2001 From: Uma Maheswara Rao G Date: Tue, 8 Jul 2014 13:20:51 +0000 Subject: [PATCH] Merged from trunk. HDFS-4286. Changes from BOOKKEEPER-203 broken capability of including bookkeeper-server jar in hidden package of BKJM. Contributed by Rakesh R. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.5@1608771 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 ++ .../hadoop-hdfs/src/contrib/bkjournal/pom.xml | 38 ++++++------------- .../apt/HDFSHighAvailabilityWithNFS.apt.vm | 16 ++++---- 3 files changed, 22 insertions(+), 35 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 8c1bf30d5c5..8b2de806912 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -510,6 +510,9 @@ Release 2.5.0 - UNRELEASED HDFS-6604. The short-circuit cache doesn't correctly time out replicas that haven't been used in a while (cmccabe) + HDFS-4286. Changes from BOOKKEEPER-203 broken capability of including + bookkeeper-server jar in hidden package of BKJM (Rakesh R via umamahesh) + BREAKDOWN OF HDFS-2006 SUBTASKS AND RELATED JIRAS HDFS-6299. Protobuf for XAttr and client-side implementation. (Yi Liu via umamahesh) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml index 933345a37df..116dd29be4b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml @@ -163,38 +163,24 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> - org.apache.maven.plugins - maven-shade-plugin - 1.5 + maven-dependency-plugin + 2.8 + dist package - shade + copy - false - - - org.apache.bookkeeper:bookkeeper-server - org.apache.zookeeper:zookeeper - org.jboss.netty:netty - - - - - org.apache.bookkeeper - hidden.bkjournal.org.apache.bookkeeper - - - org.apache.zookeeper - hidden.bkjournal.org.apache.zookeeper - - - org.jboss.netty - hidden.bkjournal.org.jboss.netty - - + + + org.apache.bookkeeper + bookkeeper-server + jar + + + ${project.build.directory}/lib diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm b/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm index f250da7f73f..819b537a9bd 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm @@ -838,20 +838,18 @@ digest:hdfs-zkfcs:vlUvLnd8MlacsE80rDuu6ONESbM=:rwcda $ mvn clean package -Pdist - This will generate a jar with the BookKeeperJournalManager, all the dependencies - needed by the journal manager, + This will generate a jar with the BookKeeperJournalManager, hadoop-hdfs/src/contrib/bkjournal/target/hadoop-hdfs-bkjournal-.jar - Note that the -Pdist part of the build command is important, as otherwise - the dependencies would not be packaged in the jar. The dependencies included in - the jar are {{{http://maven.apache.org/plugins/maven-shade-plugin/}shaded}} to - avoid conflicts with other dependencies of the NameNode. + Note that the -Pdist part of the build command is important, this would + copy the dependent bookkeeper-server jar under + hadoop-hdfs/src/contrib/bkjournal/target/lib. *** <> - To run a HDFS namenode using BookKeeper as a backend, copy the bkjournal - jar, generated above, into the lib directory of hdfs. In the standard - distribution of HDFS, this is at $HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/ + To run a HDFS namenode using BookKeeper as a backend, copy the bkjournal and + bookkeeper-server jar, mentioned above, into the lib directory of hdfs. In the + standard distribution of HDFS, this is at $HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/ cp hadoop-hdfs/src/contrib/bkjournal/target/hadoop-hdfs-bkjournal-.jar $HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/