1 |
36169
|
claudio.at
|
claudio@dlib15 % svn log upload.sh ~/workspace/dnet/dnet-mapreduce-jobs
|
2 |
|
|
------------------------------------------------------------------------
|
3 |
|
|
r36168 | claudio.atzori | 2015-04-08 11:20:45 +0200 (Wed, 08 Apr 2015) | 1 line
|
4 |
29034
|
claudio.at
|
#!/bin/bash
|
5 |
|
|
|
6 |
|
|
echo "copy uber jar to hadoop node..."
|
7 |
35900
|
alessia.ba
|
scp ~/.m2/repository/eu/dnetlib/dnet-mapreduce-jobs-assembly/0.0.6.3.1-SNAPSHOT/dnet-mapreduce-jobs-assembly-0.0.6.3.1-SNAPSHOT.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 |
36169
|
claudio.at
|
hadoop fs -rm -skipTrash hdfs://nmis-hadoop-cluster/user/dnet/lib/dnet-mapreduce-jobs-assembly-0.0.6.3.1-SNAPSHOT.jar
|
14 |
|
|
hadoop fs -copyFromLocal /tmp/dnet-mapreduce-jobs-assembly-0.0.6.3.1-SNAPSHOT.jar hdfs://nmis-hadoop-cluster/user/dnet/lib/
|
15 |
29034
|
claudio.at
|
echo "Done!"
|
16 |
|
|
EOF
|