|
|
@ -93,15 +93,7 @@ escheduler ALL=(ALL) NOPASSWD: NOPASSWD: ALL |
|
|
|
|
|
|
|
|
|
|
|
## 产品部署 |
|
|
|
## 产品部署 |
|
|
|
|
|
|
|
|
|
|
|
### 1. 修改环境变量文件 |
|
|
|
### 1. 切换到部署用户,修改安装目录权限 |
|
|
|
|
|
|
|
|
|
|
|
- 根据业务需求,修改conf/env/目录下的**escheduler_env.py**,**.escheduler_env.sh**两个文件中的环境变量 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 2. 修改部署参数 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 修改 **install.sh**中的参数,替换成自身业务所需的值 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 3. 一键部署 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 安装目录如下: |
|
|
|
- 安装目录如下: |
|
|
|
|
|
|
|
|
|
|
@ -115,12 +107,27 @@ escheduler ALL=(ALL) NOPASSWD: NOPASSWD: ALL |
|
|
|
sql |
|
|
|
sql |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
- 修改权限 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`sudo chown -R escheduler:escheduler *` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 2. 修改环境变量文件 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 根据业务需求,修改conf/env/目录下的**escheduler_env.py**,**.escheduler_env.sh**两个文件中的环境变量 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 3. 修改部署参数 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 修改 **install.sh**中的参数,替换成自身业务所需的值 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 4. 一键部署 |
|
|
|
|
|
|
|
|
|
|
|
- 安装zookeeper工具 |
|
|
|
- 安装zookeeper工具 |
|
|
|
|
|
|
|
|
|
|
|
`pip install kazoo` |
|
|
|
`pip install kazoo` |
|
|
|
|
|
|
|
|
|
|
|
- 使用部署用户 `sh install.sh` 一键部署 |
|
|
|
- 一键部署 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`sh install.sh` |
|
|
|
|
|
|
|
|
|
|
|
- jps查看服务是否启动 |
|
|
|
- jps查看服务是否启动 |
|
|
|
|
|
|
|
|
|
|
@ -168,14 +175,6 @@ sh ./bin/escheduler-daemon.sh start alert-server |
|
|
|
sh ./bin/escheduler-daemon.sh stop alert-server |
|
|
|
sh ./bin/escheduler-daemon.sh stop alert-server |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## 服务监控 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
monitor_server.py 脚本是监听,master和worker服务挂掉重启的脚本 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
注意:在全部服务都启动之后启动 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nohup python -u monitor_server.py > nohup.out 2>&1 & |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 日志查看 |
|
|
|
## 日志查看 |
|
|
|
日志统一存放于指定文件夹内 |
|
|
|
日志统一存放于指定文件夹内 |
|
|
|
|
|
|
|
|
|
|
|