DSS 启动关闭脚本

本文涉及的产品
注册配置 MSE Nacos/ZooKeeper,118元/月
服务治理 MSE Sentinel/OpenSergo,Agent数量 不受限
云原生网关 MSE Higress,422元/月
简介: DSS 启动关闭脚本

启动脚本

#!/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"
目录
相关文章
|
7月前
|
应用服务中间件 Shell 开发工具
nginx+shell脚本实现一键启用与关闭停机维护页面
nginx+shell脚本实现一键启用与关闭停机维护页面
140 0
|
7月前
|
NoSQL Shell MongoDB
shell脚本实现GrayLog配置的定期备份
shell脚本实现GrayLog配置的定期备份
90 0
|
存储 Shell 网络安全
shell编写的多服务器自动互信脚本(安装ceph)
相信大家都使用过分布式存储,而在分布式存储中较为出色的非ceph莫属了,但是这里就不深入聊ceph啦,我们只是聊聊安装ceph时遇到的问题。
|
Java Shell 程序员
Power Shell 脚本——基于curl自动批量获取FTP服务器上的日志文件
Power Shell 脚本——基于curl自动批量获取FTP服务器上的日志文件
299 0
Power Shell 脚本——基于curl自动批量获取FTP服务器上的日志文件