Project

General

Profile

1 29903 claudio.at
#!/bin/bash
2
3
echo "copy uber jar to hadoop node..."
4 29905 claudio.at
scp ~/.m2/repository/eu/dnetlib/dnet-mapreduce-jobs-assembly/0.0.4.1-protoMapping-SNAPSHOT/dnet-mapreduce-jobs-assembly-0.0.4.1-protoMapping-SNAPSHOT.jar root@quorum2.t.hadoop.research-infrastructures.eu:/tmp/
5 29903 claudio.at
6
echo "copy done! Now uploading library..."
7
8
ssh root@quorum2.t.hadoop.research-infrastructures.eu su hdfs <<'EOF'
9 29905 claudio.at
hadoop fs -rm -skipTrash hdfs://nmis-hadoop-cluster/user/dnet/lib/dnet-mapreduce-jobs-assembly-0.0.4.1-protoMapping-SNAPSHOT.jar
10 29903 claudio.at
hadoop fs -copyFromLocal /tmp/dnet-mapreduce-jobs-assembly-0.0.4-SNAPSHOT.jar hdfs://nmis-hadoop-cluster/user/dnet/lib/
11
echo "Done!"
12
EOF