4.0.0 org.apache.hadoop hadoop-project 0.24.0-SNAPSHOT ../hadoop-project org.apache.hadoop hadoop-dist 0.24.0-SNAPSHOT Apache Hadoop Distribution Apache Hadoop Distribution jar org.apache.hadoop hadoop-common provided org.apache.hadoop hadoop-hdfs provided org.apache.hadoop hadoop-mapreduce-client-app provided org.apache.hadoop hadoop-yarn-api provided maven-deploy-plugin true org.apache.rat apache-rat-plugin pom.xml dist false org.apache.maven.plugins maven-antrun-plugin dist package run run() { echo "\$ ${@}" "${@}" if [ $? != 0 ]; then echo echo "Failed!" echo exit $? fi } ROOT=`cd ${basedir}/..;pwd` echo echo "Current directory `pwd`" echo run rm -rf hadoop-${project.version} run mkdir hadoop-${project.version} run cd hadoop-${project.version} run tar xzf $ROOT/hadoop-common-project/hadoop-common/target/hadoop-common-${project.version}.tar.gz --strip-components 1 run tar xzf $ROOT/hadoop-hdfs-project/hadoop-hdfs/target/hadoop-hdfs-${project.version}.tar.gz --strip-components 1 run tar xzf $ROOT/hadoop-mapreduce-project/target/hadoop-mapreduce-${project.version}.tar.gz --strip-components 1 COMMON_LIB=share/hadoop/common/lib MODULES=../../../../modules run ln -s $MODULES/hadoop-mapreduce-client-app-${project.version}.jar $COMMON_LIB run ln -s $MODULES/hadoop-yarn-api-${project.version}.jar $COMMON_LIB run ln -s $MODULES/hadoop-mapreduce-client-common-${project.version}.jar $COMMON_LIB run ln -s $MODULES/hadoop-yarn-common-${project.version}.jar $COMMON_LIB run ln -s $MODULES/hadoop-mapreduce-client-core-${project.version}.jar $COMMON_LIB run ln -s $MODULES/hadoop-yarn-server-common-${project.version}.jar $COMMON_LIB run ln -s $MODULES/hadoop-mapreduce-client-jobclient-${project.version}.jar $COMMON_LIB run cd - run tar czf hadoop-${project.version}.tar.gz hadoop-${project.version} echo echo "Hadoop dist tar available at: ${project.build.directory}/hadoop-${project.version}.tar.gz" echo