启动脚本
#!/bin/bash
PWD_HOM=/usr/local/sw
echo "############# source /etc/profile"
/bin/bash -c "source /etc/profile"
echo "############## hadoop"
/bin/bash -c "$PWD_HOM/cluster/hadoop/sbin/start-all.sh"
echo "############## hive"
/bin/bash -c "$PWD_HOM/cluster/hive/sbin/start_hiveserver2.sh"
/bin/bash -c "$PWD_HOM/cluster/hive/sbin/start_metastore.sh"
echo "############## zookeeper"
/bin/bash -c "$PWD_HOM/cluster/zookeeper/bin/zkServer.sh start"
echo "############## kafka"
/bin/bash -c "$PWD_HOM/cluster/kafka/sbin/kafkamian.sh start"
echo "############## linkis"
/bin/bash -c "$PWD_HOM/linkis/LinkisInstall/sbin/linkis-start-all.sh"
sleep 10
echo "############## dss"
su hdfs -c "bash $PWD_HOM/dss-dev/sbin/dss-start-all.sh"
sleep 10
echo ""
echo "############## usercenter"
/bin/bash -c "cd $PWD_HOM/usercenter/sbin;./daemon.sh start server"
echo ""
echo "############## warehouse"
/bin/bash -c "$PWD_HOM/data-warehouse-server/bin/start-warehous.sh"
echo ""
echo "############## swmd"
/bin/bash -c "cd $PWD_HOM/swmd/sbin;./daemon.sh start server"
echo ""
echo "############## swde"
/bin/bash -c "cd $PWD_HOM/swde/sbin;./daemon.sh start server"
echo ""
echo "############## datastandard"
/bin/bash -c "cd $PWD_HOM/datastandard/sbin;./daemon.sh start server"
echo ""
echo "############## exchangis"
/bin/bash -c "cd $PWD_HOM/exchangis/sbin;./start.sh -m server"
echo ""
echo "############## dbapi"
/bin/bash -c "$PWD_HOM/dbapi-sso/DBApi-3.1.0/bin/dbapi-daemon.sh start standalone"
echo ""
echo "############## qualitis"
/bin/bash -c "$PWD_HOM/qualitis/bin/start.sh"
关闭脚本
#!/bin/bash
PWD_HOM=/usr/local/sw
echo "############# source /etc/profile"
/bin/bash -c "source /etc/profile"
echo "############## hadoop"
/bin/bash -c "$PWD_HOM/cluster/hadoop/sbin/stop-all.sh"
echo "############## hive"
/bin/bash -c "$PWD_HOM/cluster/hive/sbin/stop_hiveserver2.sh"
/bin/bash -c "$PWD_HOM/cluster/hive/sbin/stop_metastore.sh"
echo "############## zookeeper"
/bin/bash -c "$PWD_HOM/cluster/zookeeper/bin/zkServer.sh stop"
echo "############## kafka"
/bin/bash -c "$PWD_HOM/cluster/kafka/sbin/kafkamian.sh stop"
echo "############## linkis"
/bin/bash -c "$PWD_HOM/linkis/LinkisInstall/sbin/linkis-stop-all.sh"
sleep 10
echo "############## dss"
su hdfs -c "$PWD_HOM/dss-dev/sbin/dss-stop-all.sh"
sleep 10
echo ""
echo "############## usercenter"
/bin/bash -c "cd $PWD_HOM/usercenter/sbin;./daemon.sh stop server"
echo ""
echo "############## warehouse"
/bin/bash -c "$PWD_HOM/data-warehouse-server/bin/stop-warehous.sh"
echo ""
echo "############## swmd"
/bin/bash -c "cd $PWD_HOM/swmd/sbin;./daemon.sh stop server"
echo ""
echo "############## swde"
/bin/bash -c "cd $PWD_HOM/swde/sbin;./daemon.sh stop server"
echo ""
echo "############## datastandard"
/bin/bash -c "cd $PWD_HOM/datastandard/sbin;./daemon.sh stop server"
echo ""
echo "############## exchangis"
/bin/bash -c "cd $PWD_HOM/exchangis/sbin;./stop.sh -m server"
echo ""
echo "############## dbapi"
/bin/bash -c "$PWD_HOM/dbapi-sso/DBApi-3.1.0/bin/dbapi-daemon.sh stop standalone"
echo ""
echo "############## qualitis"
/bin/bash -c "$PWD_HOM/qualitis/bin/stop.sh"