/etc/rc.d/rc.local
touch /var/lock/subsys/local
. /etc/rc.d/rc.tune
su - hadoopmc -c "/opt/sohuhadoop/hadoop/bin/stop-all.sh"
sleep 2
su - hadoopmc -c "/opt/sohuhadoop/hadoop/bin/start-all.sh"
sleep 2
su - hadoopmc -c "HIVE_PORT=10010 nohup $HIVE_HOME/bin/hive --service hiveserver &"
sleep 1
su - hadoopmc -c "/opt/sohuhadoop/hbase/bin/stop-hbase.sh"
sleep 1
su - hadoopmc -c "/opt/sohuhadoop/hbase/bin/start-hbase.sh"
阅读(1085) | 评论(1) | 转发(0) |