![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
脚本备份
文章平均质量分 67
天然呆的技术博客
纯天然的技术小呆呆
展开
-
count.sh
#! /bin/bash tmpfile=`date '+%Y%m%d%H%M%S'`.txt echo $tmpfile for i in `find /home/hadoop/tmp/log -name localhost*` do echo $i if[ -s $i ] then cat $i >> $tmpfile rm -f $i fi done if原创 2014-04-27 20:20:26 · 517 阅读 · 0 评论 -
start_all.sh
#! /bin/bash for host1 in master1 master1-s slave1 do ./exp_start.sh hadoop@$host1 '1234' "cd $ZOOKEEPER_HOME" 'bin/zkServer.sh start' done for host2 in master1 master1-s slave1 do原创 2014-04-27 20:21:52 · 773 阅读 · 0 评论