Project

General

Profile

1 29034 claudio.at
#!/bin/bash
2
3 42423 claudio.at
VERSION=`xmlstarlet sel -t -m "/_:project/_:version" -v "." pom.xml`
4
echo "using version: $VERSION"
5
6 29034 claudio.at
echo "copy uber jar to hadoop node..."
7 42423 claudio.at
scp ~/.m2/repository/eu/dnetlib/dnet-mapreduce-jobs-assembly/$VERSION/dnet-mapreduce-jobs-assembly-$VERSION.jar root@quorum2.t.hadoop.research-infrastructures.eu:/tmp/
8 29034 claudio.at
9
echo "copy done! Now uploading library..."
10
11
ssh root@quorum2.t.hadoop.research-infrastructures.eu su hdfs <<'EOF'
12 33137 claudio.at
export HADOOP_LOG_DIR=/var/log/hadoop-0.20-mapreduce
13 50112 sandro.lab
hadoop fs -rm -skipTrash hdfs://nmis-hadoop-cluster/user/sandro/wds/lib/dnet-mapreduce-jobs-assembly-1.0.0-SNAPSHOT.jar
14
hadoop fs -copyFromLocal /tmp/dnet-mapreduce-jobs-assembly-1.0.0-SNAPSHOT.jar hdfs://nmis-hadoop-cluster/user/sandro/wds/lib/dnet-mapreduce-jobs-assembly-1.0.0-SNAPSHOT.jar
15 29034 claudio.at
echo "Done!"
16 40024 alessia.ba
EOF