1 |
29034
|
claudio.at
|
#!/bin/bash
|
2 |
|
|
|
3 |
|
|
echo "copy uber jar to hadoop node..."
|
4 |
40024
|
alessia.ba
|
scp ~/.m2/repository/eu/dnetlib/dnet-mapreduce-jobs-assembly/0.0.8.3-SNAPSHOT/dnet-mapreduce-jobs-assembly-0.0.8.3-SNAPSHOT.jar root@quorum2.t.hadoop.research-infrastructures.eu:/tmp/
|
5 |
29034
|
claudio.at
|
|
6 |
|
|
echo "copy done! Now uploading library..."
|
7 |
|
|
|
8 |
|
|
ssh root@quorum2.t.hadoop.research-infrastructures.eu su hdfs <<'EOF'
|
9 |
33137
|
claudio.at
|
export HADOOP_LOG_DIR=/var/log/hadoop-0.20-mapreduce
|
10 |
40024
|
alessia.ba
|
hadoop fs -rm -skipTrash hdfs://nmis-hadoop-cluster/user/dnet/lib/dnet-mapreduce-jobs-assembly-0.0.8.3-SNAPSHOT.jar
|
11 |
|
|
hadoop fs -copyFromLocal /tmp/dnet-mapreduce-jobs-assembly-0.0.8.3-SNAPSHOT.jar hdfs://nmis-hadoop-cluster/user/dnet/lib/
|
12 |
29034
|
claudio.at
|
echo "Done!"
|
13 |
40024
|
alessia.ba
|
EOF
|