* add ConnectionFactoryTest and ConnectionFactory read datasource from appliction.yml
* .escheduler_env.sh to dolphinscheduler_env.sh
* dao yml assembly to conf directory
* table name modify
* entity title table name modify
* logback log name modify
* running through the big process
* running through the big process error modify
* logback log name modify
* data_source.properties rename
* logback log name modify
* install.sh optimization
* install.sh optimization
* command count modify
* command state update
* countCommandState sql update
* countCommandState sql update
* remove application.yml file
* master.properties modify
* install.sh modify
# Enterprise WeChat user configuration, multiple users to , split
# Enterprise WeChat user configuration, multiple users to , split
enterpriseWechatUsers="xxxxx,xxxxx"
enterpriseWechatUsers="xxxxx,xxxxx"
# alert port
alertPort=7789
# whether to start monitoring self-starting scripts
# whether to start monitoring self-starting scripts
monitorServerState="false"
monitorServerState="false"
@ -251,6 +254,9 @@ masterMaxCpuLoadAvg="10"
# master reserve memory to determine if the master has execution capability
# master reserve memory to determine if the master has execution capability
masterReservedMemory="1"
masterReservedMemory="1"
# master port
masterPort=5566
# worker config
# worker config
# worker execution thread
# worker execution thread
@ -262,13 +268,13 @@ workerHeartbeatInterval="10"
# worker number of fetch tasks
# worker number of fetch tasks
workerFetchTaskNum="3"
workerFetchTaskNum="3"
# workerThe maximum cpu average load, used to determine whether the worker still has the ability to execute,
# keep the system default, the default is twice the number of cpu cores, when the load reaches 2 times
#workerMaxCupLoadAvg="10"
# worker reserve memory to determine if the master has execution capability
# worker reserve memory to determine if the master has execution capability
workerReservedMemory="1"
workerReservedMemory="1"
# master port
workerPort=7788
# api config
# api config
# api server port
# api server port
apiServerPort="12345"
apiServerPort="12345"
@ -306,10 +312,10 @@ passowrd="xx"
# 1,replace file
# 1,replace file
echo"1,replace file"
echo"1,replace file"
if[$dbtype=="mysql"];then
if[$dbtype=="mysql"];then
sed -i ${txt}"s#spring.datasource.url.*#spring.datasource.url=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" application.yml
sed -i ${txt}"s#spring.datasource.url.*#spring.datasource.url=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" application.properties
sed -i ${txt}"s#spring.datasource.username.*#spring.datasource.username=${username}#g" application.yml
sed -i ${txt}"s#spring.datasource.username.*#spring.datasource.username=${username}#g" application.properties
sed -i ${txt}"s#spring.datasource.password.*#spring.datasource.password=${passowrd}#g" application.yml
sed -i ${txt}"s#spring.datasource.password.*#spring.datasource.password=${passowrd}#g" application.properties
sed -i ${txt}"s#spring.datasource.driver-class-name.*#spring.datasource.driver-class-name=com.mysql.jdbc.Driver#g" application.yml
sed -i ${txt}"s#spring.datasource.driver-class-name.*#spring.datasource.driver-class-name=com.mysql.jdbc.Driver#g" application.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.URL.*#org.quartz.dataSource.myDs.URL=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/quartz.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.URL.*#org.quartz.dataSource.myDs.URL=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/quartz.properties
@ -319,10 +325,10 @@ if [ $dbtype == "mysql" ];then
fi
fi
if[$dbtype=="postgresql"];then
if[$dbtype=="postgresql"];then
sed -i ${txt}"s#spring.datasource.url.*#spring.datasource.url=jdbc:postgresql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" application.yml
sed -i ${txt}"s#spring.datasource.url.*#spring.datasource.url=jdbc:postgresql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" application.properties
sed -i ${txt}"s#spring.datasource.username.*#spring.datasource.username=${username}#g" application.yml
sed -i ${txt}"s#spring.datasource.username.*#spring.datasource.username=${username}#g" application.properties
sed -i ${txt}"s#spring.datasource.password.*#spring.datasource.password=${passowrd}#g" application.yml
sed -i ${txt}"s#spring.datasource.password.*#spring.datasource.password=${passowrd}#g" application.properties
sed -i ${txt}"s#spring.datasource.driver-class-name.*#spring.datasource.driver-class-name=org.postgresql.Driver#g" application.yml
sed -i ${txt}"s#spring.datasource.driver-class-name.*#spring.datasource.driver-class-name=org.postgresql.Driver#g" application.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.URL.*#org.quartz.dataSource.myDs.URL=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/quartz.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.URL.*#org.quartz.dataSource.myDs.URL=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/quartz.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.user.*#org.quartz.dataSource.myDs.user=${username}#g" conf/quartz.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.user.*#org.quartz.dataSource.myDs.user=${username}#g" conf/quartz.properties
@ -374,23 +380,23 @@ sed -i ${txt} "s#master.exec.task.number.*#master.exec.task.number=${masterExecT
sed -i ${txt}"s#master.heartbeat.interval.*#master.heartbeat.interval=${masterHeartbeatInterval}#g" conf/master.properties
sed -i ${txt}"s#master.heartbeat.interval.*#master.heartbeat.interval=${masterHeartbeatInterval}#g" conf/master.properties
sed -i ${txt}"s#master.task.commit.retryTimes.*#master.task.commit.retryTimes=${masterTaskCommitRetryTimes}#g" conf/master.properties
sed -i ${txt}"s#master.task.commit.retryTimes.*#master.task.commit.retryTimes=${masterTaskCommitRetryTimes}#g" conf/master.properties
sed -i ${txt}"s#master.task.commit.interval.*#master.task.commit.interval=${masterTaskCommitInterval}#g" conf/master.properties
sed -i ${txt}"s#master.task.commit.interval.*#master.task.commit.interval=${masterTaskCommitInterval}#g" conf/master.properties
sed -i ${txt}"s#worker.reserved.memory.*#worker.reserved.memory=${workerReservedMemory}#g" conf/worker.properties
sed -i ${txt}"s#worker.reserved.memory.*#worker.reserved.memory=${workerReservedMemory}#g" conf/worker.properties
sed -i ${txt}"s#server.port.*#server.port=${workerPort}#g" conf/application-worker.properties
sed -i ${txt}"s#server.port.*#server.port=${apiServerPort}#g" conf/application.properties
sed -i ${txt}"s#server.port.*#server.port=${apiServerPort}#g" conf/application-api.properties
sed -i ${txt}"s#server.servlet.session.timeout.*#server.servlet.session.timeout=${apiServerSessionTimeout}#g" conf/application.properties
sed -i ${txt}"s#server.servlet.session.timeout.*#server.servlet.session.timeout=${apiServerSessionTimeout}#g" conf/application-api.properties
sed -i ${txt}"s#server.servlet.context-path.*#server.servlet.context-path=${apiServerContextPath}#g" conf/application.properties
sed -i ${txt}"s#server.servlet.context-path.*#server.servlet.context-path=${apiServerContextPath}#g" conf/application-api.properties
sed -i ${txt}"s#spring.servlet.multipart.max-file-size.*#spring.servlet.multipart.max-file-size=${springMaxFileSize}#g" conf/application.properties
sed -i ${txt}"s#spring.servlet.multipart.max-file-size.*#spring.servlet.multipart.max-file-size=${springMaxFileSize}#g" conf/application-api.properties
sed -i ${txt}"s#spring.servlet.multipart.max-request-size.*#spring.servlet.multipart.max-request-size=${springMaxRequestSize}#g" conf/application.properties
sed -i ${txt}"s#spring.servlet.multipart.max-request-size.*#spring.servlet.multipart.max-request-size=${springMaxRequestSize}#g" conf/application-api.properties
sed -i ${txt}"s#server.jetty.max-http-post-size.*#server.jetty.max-http-post-size=${apiMaxHttpPostSize}#g" conf/application.properties
sed -i ${txt}"s#server.jetty.max-http-post-size.*#server.jetty.max-http-post-size=${apiMaxHttpPostSize}#g" conf/application-api.properties
sed -i ${txt}"s#mail.protocol.*#mail.protocol=${mailProtocol}#g" conf/alert.properties
sed -i ${txt}"s#mail.protocol.*#mail.protocol=${mailProtocol}#g" conf/alert.properties
@ -406,6 +412,8 @@ sed -i ${txt} "s#enterprise.wechat.corp.id.*#enterprise.wechat.corp.id=${enterpr
sed -i ${txt}"s#enterprise.wechat.secret.*#enterprise.wechat.secret=${enterpriseWechatSecret}#g" conf/alert.properties
sed -i ${txt}"s#enterprise.wechat.secret.*#enterprise.wechat.secret=${enterpriseWechatSecret}#g" conf/alert.properties
sed -i ${txt}"s#enterprise.wechat.agent.id.*#enterprise.wechat.agent.id=${enterpriseWechatAgentId}#g" conf/alert.properties
sed -i ${txt}"s#enterprise.wechat.agent.id.*#enterprise.wechat.agent.id=${enterpriseWechatAgentId}#g" conf/alert.properties
sed -i ${txt}"s#enterprise.wechat.users.*#enterprise.wechat.users=${enterpriseWechatUsers}#g" conf/alert.properties
sed -i ${txt}"s#enterprise.wechat.users.*#enterprise.wechat.users=${enterpriseWechatUsers}#g" conf/alert.properties
sed -i ${txt}"s#server.port.*#server.port=${alertPort}#g" conf/application-alert.properties
sed -i ${txt}"s#installPath.*#installPath=${installPath}#g" conf/config/install_config.conf
sed -i ${txt}"s#installPath.*#installPath=${installPath}#g" conf/config/install_config.conf