Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
老大叔也想要天天的爱情
DolphinScheduler
提交
f4640e87
DolphinScheduler
项目概览
老大叔也想要天天的爱情
/
DolphinScheduler
与 Fork 源项目一致
Fork自
apache / DolphinScheduler
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f4640e87
编写于
4月 11, 2019
作者:
B
baoliang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update install document
上级
c075d26a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
54 addition
and
63 deletion
+54
-63
docs/zh_CN/后端部署文档.md
docs/zh_CN/后端部署文档.md
+1
-1
install.sh
install.sh
+53
-62
未找到文件。
docs/zh_CN/后端部署文档.md
浏览文件 @
f4640e87
...
@@ -99,7 +99,7 @@ escheduler ALL=(ALL) NOPASSWD: NOPASSWD: ALL
...
@@ -99,7 +99,7 @@ escheduler ALL=(ALL) NOPASSWD: NOPASSWD: ALL
### 2. 修改部署参数
### 2. 修改部署参数
- 修改
install.sh 中变量的值
,替换成自身业务所需的值
- 修改
**install.sh**
中的参数
,替换成自身业务所需的值
### 3. 一键部署
### 3. 一键部署
...
...
install.sh
浏览文件 @
f4640e87
...
@@ -47,8 +47,57 @@ mysqlUserName="xx"
...
@@ -47,8 +47,57 @@ mysqlUserName="xx"
# mysql 密码
# mysql 密码
mysqlPassword
=
"xx"
mysqlPassword
=
"xx"
# conf/config/install_config.conf配置
# 安装路径,不要当前路径(pwd)一样
installPath
=
"/data1_1T/escheduler"
# 部署用户
deployUser
=
"escheduler"
# zk集群
zkQuorum
=
"192.168.xx.xx:2181,192.168.xx.xx:2181,192.168.xx.xx:2181"
# 安装hosts
ips
=
"ark0,ark1,ark2,ark3,ark4"
# conf/config/run_config.conf配置
# 运行Master的机器
masters
=
"ark0,ark1"
# 运行Worker的机器
workers
=
"ark2,ark3,ark4"
# 运行Alert的机器
alertServer
=
"ark3"
# 运行Api的机器
apiServers
=
"ark1"
# alert配置
# 邮件协议
mailProtocol
=
"SMTP"
# 邮件服务host
mailServerHost
=
"smtp.exmail.qq.com"
# 邮件服务端口
mailServerPort
=
"25"
# 发送人
mailSender
=
"xxxxxxxxxx"
# 发送人密码
mailPassword
=
"xxxxxxxxxx"
# 下载Excel路径
xlsFilePath
=
"/tmp/xls"
# hadoop 配置
# hadoop 配置
# 是否启动hdfs,如果启动则为true,需要配置以下hadoop相关参数;
# 不启动设置为false,如果为false,以下配置不需要修改
hdfsStartupSate
=
"false"
# namenode地址,支持HA,需要将core-site.xml和hdfs-site.xml放到conf目录下
# namenode地址,支持HA,需要将core-site.xml和hdfs-site.xml放到conf目录下
namenodeFs
=
"hdfs://mycluster:8020"
namenodeFs
=
"hdfs://mycluster:8020"
...
@@ -58,6 +107,8 @@ yarnHaIps="192.168.xx.xx,192.168.xx.xx"
...
@@ -58,6 +107,8 @@ yarnHaIps="192.168.xx.xx,192.168.xx.xx"
# 如果是单 resourcemanager,只需要配置一个主机名称,如果是resourcemanager HA,则默认配置就好
# 如果是单 resourcemanager,只需要配置一个主机名称,如果是resourcemanager HA,则默认配置就好
singleYarnIp
=
"ark1"
singleYarnIp
=
"ark1"
# hdfs根路径,根路径的owner必须是部署用户
hdfsPath
=
"/escheduler"
# common 配置
# common 配置
# 程序路径
# 程序路径
...
@@ -69,17 +120,11 @@ downloadPath="/tmp/escheduler/download"
...
@@ -69,17 +120,11 @@ downloadPath="/tmp/escheduler/download"
# 任务执行路径
# 任务执行路径
execPath
=
"/tmp/escheduler/exec"
execPath
=
"/tmp/escheduler/exec"
# hdfs根路径
hdfsPath
=
"/escheduler"
# 是否启动hdfs,如果启动则为true,不启动设置为false
hdfsStartupSate
=
"true"
# SHELL环境变量路径
# SHELL环境变量路径
shellEnvPath
=
"
/opt
/.escheduler_env.sh"
shellEnvPath
=
"
$installPath
/conf/env
/.escheduler_env.sh"
# Python换将变量路径
# Python换将变量路径
pythonEnvPath
=
"
/opt
/escheduler_env.py"
pythonEnvPath
=
"
$installPath
/conf/env
/escheduler_env.py"
# 资源文件的后缀
# 资源文件的后缀
resSuffixs
=
"txt,log,sh,conf,cfg,py,java,sql,hql,xml"
resSuffixs
=
"txt,log,sh,conf,cfg,py,java,sql,hql,xml"
...
@@ -87,11 +132,7 @@ resSuffixs="txt,log,sh,conf,cfg,py,java,sql,hql,xml"
...
@@ -87,11 +132,7 @@ resSuffixs="txt,log,sh,conf,cfg,py,java,sql,hql,xml"
# 开发状态,如果是true,对于SHELL脚本可以在execPath目录下查看封装后的SHELL脚本,如果是false则执行完成直接删除
# 开发状态,如果是true,对于SHELL脚本可以在execPath目录下查看封装后的SHELL脚本,如果是false则执行完成直接删除
devState
=
"true"
devState
=
"true"
# zk 配置
# zk 配置
# zk集群
zkQuorum
=
"192.168.xx.xx:2181,192.168.xx.xx:2181,192.168.xx.xx:2181"
# zk根目录
# zk根目录
zkRoot
=
"/escheduler"
zkRoot
=
"/escheduler"
...
@@ -168,7 +209,6 @@ workerMaxCupLoadAvg="10"
...
@@ -168,7 +209,6 @@ workerMaxCupLoadAvg="10"
# worker预留内存,用来判断master是否还有执行能力
# worker预留内存,用来判断master是否还有执行能力
workerReservedMemory
=
"1"
workerReservedMemory
=
"1"
# api 配置
# api 配置
# api 服务端口
# api 服务端口
apiServerPort
=
"12345"
apiServerPort
=
"12345"
...
@@ -188,53 +228,6 @@ springMaxRequestSize="1024MB"
...
@@ -188,53 +228,6 @@ springMaxRequestSize="1024MB"
# api 最大post请求大小
# api 最大post请求大小
apiMaxHttpPostSize
=
"5000000"
apiMaxHttpPostSize
=
"5000000"
# alert配置
# 邮件协议
mailProtocol
=
"SMTP"
# 邮件服务host
mailServerHost
=
"smtp.exmail.qq.com"
# 邮件服务端口
mailServerPort
=
"25"
# 发送人
mailSender
=
"xxxxxxxxxx"
# 发送人密码
mailPassword
=
"xxxxxxxxxx"
# 下载Excel路径
xlsFilePath
=
"/opt/xls"
# conf/config/install_config.conf配置
# 安装路径,不要当前路径(pwd)一样
installPath
=
"/data1_1T/escheduler"
# 部署用户
deployUser
=
"escheduler"
# 安装hosts
ips
=
"ark0,ark1,ark2,ark3,ark4"
# conf/config/run_config.conf配置
# 运行Master的机器
masters
=
"ark0,ark1"
# 运行Worker的机器
workers
=
"ark2,ark3,ark4"
# 运行Alert的机器
alertServer
=
"ark3"
# 运行Api的机器
apiServers
=
"ark1"
# 1,替换文件
# 1,替换文件
echo
"1,替换文件"
echo
"1,替换文件"
sed
-i
${
txt
}
"s#spring.datasource.url.*#spring.datasource.url=jdbc:mysql://
${
mysqlHost
}
/
${
mysqlDb
}
?characterEncoding=UTF-8#g"
conf/dao/data_source.properties
sed
-i
${
txt
}
"s#spring.datasource.url.*#spring.datasource.url=jdbc:mysql://
${
mysqlHost
}
/
${
mysqlDb
}
?characterEncoding=UTF-8#g"
conf/dao/data_source.properties
...
@@ -317,8 +310,6 @@ sed -i ${txt} "s#alertServer.*#alertServer=${alertServer}#g" conf/config/run_con
...
@@ -317,8 +310,6 @@ sed -i ${txt} "s#alertServer.*#alertServer=${alertServer}#g" conf/config/run_con
sed
-i
${
txt
}
"s#apiServers.*#apiServers=
${
apiServers
}
#g"
conf/config/run_config.conf
sed
-i
${
txt
}
"s#apiServers.*#apiServers=
${
apiServers
}
#g"
conf/config/run_config.conf
# 2,创建目录
# 2,创建目录
echo
"2,创建目录"
echo
"2,创建目录"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录