Author: umamahesh Date: Tue Jul 8 13:17:54 2014 New Revision: 1608764 URL: http://svn.apache.org/r1608764 Log: HDFS-4286. Changes from BOOKKEEPER-203 broken capability of including bookkeeper-server jar in hidden package of BKJM. Contributed by Rakesh R.
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1608764&r1=1608763&r2=1608764&view=diff ============================================================================== --- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original) +++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Tue Jul 8 13:17:54 2014 @@ -784,6 +784,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) Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml?rev=1608764&r1=1608763&r2=1608764&view=diff ============================================================================== --- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml (original) +++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml Tue Jul 8 13:17:54 2014 @@ -163,38 +163,24 @@ http://maven.apache.org/xsd/maven-4.0.0. <build> <plugins> <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>1.5</version> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.8</version> <executions> <execution> + <id>dist</id> <phase>package</phase> <goals> - <goal>shade</goal> + <goal>copy</goal> </goals> <configuration> - <createDependencyReducedPom>false</createDependencyReducedPom> - <artifactSet> - <includes> - <include>org.apache.bookkeeper:bookkeeper-server</include> - <include>org.apache.zookeeper:zookeeper</include> - <include>org.jboss.netty:netty</include> - </includes> - </artifactSet> - <relocations> - <relocation> - <pattern>org.apache.bookkeeper</pattern> - <shadedPattern>hidden.bkjournal.org.apache.bookkeeper</shadedPattern> - </relocation> - <relocation> - <pattern>org.apache.zookeeper</pattern> - <shadedPattern>hidden.bkjournal.org.apache.zookeeper</shadedPattern> - </relocation> - <relocation> - <pattern>org.jboss.netty</pattern> - <shadedPattern>hidden.bkjournal.org.jboss.netty</shadedPattern> - </relocation> - </relocations> + <artifactItems> + <artifactItem> + <groupId>org.apache.bookkeeper</groupId> + <artifactId>bookkeeper-server</artifactId> + <type>jar</type> + </artifactItem> + </artifactItems> + <outputDirectory>${project.build.directory}/lib</outputDirectory> </configuration> </execution> </executions> Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm?rev=1608764&r1=1608763&r2=1608764&view=diff ============================================================================== --- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm (original) +++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/HDFSHighAvailabilityWithNFS.apt.vm Tue Jul 8 13:17:54 2014 @@ -838,20 +838,18 @@ digest:hdfs-zkfcs:vlUvLnd8MlacsE80rDuu6O $ 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-<VERSION>.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. *** <<Putting the BookKeeperJournalManager in the NameNode classpath>> - 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-<VERSION>.jar $HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/