From 8b564633153d1a541a5b8561bd8eebeed473b798 Mon Sep 17 00:00:00 2001 From: Arun Murthy Date: Sat, 27 Aug 2011 19:07:04 +0000 Subject: [PATCH] HDFS-2289. Ensure jsvc is bundled with the HDFS distribution artifact. Contributed by Alejandro Abdelnur. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1162421 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 ++ hadoop-hdfs-project/hadoop-hdfs/pom.xml | 50 +++++++++++++++++++ .../hadoop-hdfs/src/main/bin/hdfs | 2 +- hadoop-project/pom.xml | 4 +- 4 files changed, 57 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index a33030c5e57..c5baf5b8eba 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1003,6 +1003,9 @@ Release 0.23.0 - Unreleased HDFS-2286. DataXceiverServer logs AsynchronousCloseException at shutdown (todd) + HDFS-2289. Ensure jsvc is bundled with the HDFS distribution artifact. + (Alejandro Abdelnur via acmurthy) + BREAKDOWN OF HDFS-1073 SUBTASKS HDFS-1521. Persist transaction ID on disk between NN restarts. diff --git a/hadoop-hdfs-project/hadoop-hdfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/pom.xml index 80d5b007f7c..f0d04ae4dec 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/pom.xml @@ -299,6 +299,56 @@ + + org.apache.maven.plugins + maven-antrun-plugin + + + xprepare-package-hadoop-daemon + prepare-package + + run + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs b/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs index 8e8b1cfafc2..ece940bdd93 100755 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs @@ -118,7 +118,7 @@ if [ "$starting_secure_dn" = "true" ]; then HADOOP_SECURE_DN_PID="$HADOOP_PID_DIR/hadoop_secure_dn.pid" fi - exec "$HADOOP_HDFS_HOME/bin/jsvc" \ + exec "$HADOOP_HDFS_HOME/libexec/jsvc" \ -Dproc_$COMMAND -outfile "$HADOOP_LOG_DIR/jsvc.out" \ -errfile "$HADOOP_LOG_DIR/jsvc.err" \ -pidfile "$HADOOP_SECURE_DN_PID" \ diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index d76b1e4d1d1..901b27c66b8 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -74,6 +74,8 @@ Apache Development Snapshot Repository https://repository.apache.org/content/repositories/snapshots + + 1.0.3 @@ -365,7 +367,7 @@ commons-daemon commons-daemon - 1.0.1 + ${commons-daemon.version}