Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

create Apache Giraph-compatible facebook jars. #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions copy-hdfs-jars-to-maven.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ BASEDIR=`dirname $0`
cd ${BASEDIR}

if [ ! -f build/hadoop-0.20.1-dev-core.jar ]; then
if [ ! -f build/hadoop-0.20-core.jar ]; then
if [ ! -f build/hadoop-0.20.1-core.jar ]; then
echo "core jar not found. Running 'ant jar'..."
ant jar | grep BUILD;
fi
fi

if [ ! -f build/hadoop-0.20.1-dev-test.jar ]; then
if [ ! -f build/hadoop-0.20-test.jar ]; then
if [ ! -f build/hadoop-0.20.1-test.jar ]; then
echo "test jar not found. Running 'ant jar-test'..."
ant jar-test | grep BUILD;
fi
Expand All @@ -32,7 +32,7 @@ fi
if [ -f build/hadoop-0.20.1-dev-core.jar ]; then
CORE_JAR=build/hadoop-0.20.1-dev-core.jar
else
CORE_JAR=build/hadoop-0.20-core.jar
CORE_JAR=build/hadoop-0.20.1-core.jar
fi

if [ -f build/hadoop-0.20.1-dev-test.jar ]; then
Expand All @@ -48,16 +48,16 @@ echo "** HBase builds will pick up the HDFS* jars from the local maven repo."

mvn install:install-file \
-DgeneratePom=true \
-DgroupId=org.apache.hadoop \
-DgroupId=com.facebook.hadoop \
-DartifactId=hadoop-core \
-Dversion=0.20 \
-Dversion=0.20.1 \
-Dpackaging=jar \
-Dfile=${CORE_JAR}

mvn install:install-file \
-DgeneratePom=true \
-DgroupId=org.apache.hadoop \
-DgroupId=com.facebook.hadoop \
-DartifactId=hadoop-test \
-Dversion=0.20 \
-Dversion=0.20.1 \
-Dpackaging=jar \
-Dfile=${TEST_JAR}