-
Notifications
You must be signed in to change notification settings - Fork 1
/
collecttrace.sh
executable file
·35 lines (23 loc) · 1.19 KB
/
collecttrace.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
mkdir results/$1
mkdir results/$1/master
mkdir results/$1/slave1
#copying the rpc trace of hbase
#cp /var/log/hbase/htrace.out results/$1/master/.
#scp hadoop@slave1:/var/log/hbase/htrace.out results/$1/slave1/.
#copying hbase metrics
cp /home/hadoop/hbase/all.metrics results/$1/master/.
scp hadoop@slave1:/home/hadoop/hbase/all.metrics results/$1/slave1/.
#copying dfs metrics
cp /home/hadoop/hadoop/datanode-metrics.out results/$1/master/.
scp hadoop@slave1:/home/hadoop/hadoop/datanode-metrics.out results/$1/slave1/.
cp /home/hadoop/hadoop/namenode-metrics.out results/$1/master/.
#hbase logs
cp /home/hadoop/hbase/logs/hbase-hadoop-master-sceplus-vm48.log results/$1/master/.
cp /home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm48.log results/$1/master/.
scp hadoop@slave1:/home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm49.log results/$1/slave1/.
#hbase out
cp /home/hadoop/hbase/logs/hbase-hadoop-master-sceplus-vm48.out results/$1/master/.
cp /home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm48.out results/$1/master/.
scp hadoop@slave1:/home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm49.out results/$1/slave1/.
cp $1.log results/$1/.