-
Notifications
You must be signed in to change notification settings - Fork 1
/
deleteoldlogs.sh
executable file
·21 lines (17 loc) · 1.15 KB
/
deleteoldlogs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
ssh hadoop@master rm /var/log/hbase/htrace.out
ssh hadoop@master rm /home/hadoop/hbase/all.metrics
ssh hadoop@master rm /home/hadoop/hadoop/datanode-metrics.out
ssh hadoop@master rm /home/hadoop/hadoop/namenode-metrics.out
ssh hadoop@master rm /home/hadoop/hbase/logs/hbase-hadoop-master-sceplus-vm48.log
ssh hadoop@master rm /home/hadoop/hbase/logs/hbase-hadoop-master-sceplus-vm48.log.1
ssh hadoop@master rm /home/hadoop/hbase/logs/hbase-hadoop-master-sceplus-vm48.out
ssh hadoop@master rm /home/hadoop/hbase/logs/hbase-hadoop-master-sceplus-vm48.out.1
ssh hadoop@master rm /home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm48.log
ssh hadoop@slave1 rm /var/log/hbase/htrace.out
ssh hadoop@slave1 rm /home/hadoop/hbase/all.metrics
ssh hadoop@slave1 rm /home/hadoop/hadoop/datanode-metrics.out
ssh hadoop@slave1 rm /home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm49.log
ssh hadoop@slave1 rm /home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm49.out
ssh hadoop@slave1 rm /home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm49.log.1
ssh hadoop@slave1 rm /home/hadoop/hbase/logs/hbase-hadoop-regionserver-sceplus-vm49.out.1