Browse Source
* Support DS to create user and group in windows environment * Add unit test * delete combined-server config in dolphinscheduler-daemon.sh file * refactor dockerfile * modify dockerfile * modify dockerfilepull/2/head
liwenhe1993
5 years ago
committed by
GitHub
56 changed files with 817 additions and 3135 deletions
@ -1,11 +1,284 @@ |
|||||||
## Build Image |
## What is Dolphin Scheduler? |
||||||
|
|
||||||
|
Dolphin Scheduler is a distributed and easy-to-expand visual DAG workflow scheduling system, dedicated to solving the complex dependencies in data processing, making the scheduling system out of the box for data processing. |
||||||
|
|
||||||
|
Github URL: https://github.com/apache/incubator-dolphinscheduler |
||||||
|
|
||||||
|
Official Website: https://dolphinscheduler.apache.org |
||||||
|
|
||||||
|
![Dolphin Scheduler](https://dolphinscheduler.apache.org/img/hlogo_colorful.svg) |
||||||
|
|
||||||
|
## How to use this image |
||||||
|
|
||||||
|
#### You can start a dolphinscheduler instance |
||||||
|
``` |
||||||
|
$ docker run -d --name dolphinscheduler \ |
||||||
|
-e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test \ |
||||||
|
-p 8888:8888 \ |
||||||
|
dolphinscheduler all |
||||||
|
``` |
||||||
|
|
||||||
|
The default postgres user `root`, postgres password `root` and database `dolphinscheduler` are created in the `startup.sh`. |
||||||
|
|
||||||
|
The default zookeeper is created in the `startup.sh`. |
||||||
|
|
||||||
|
#### Or via Environment Variables **`POSTGRESQL_HOST`** **`POSTGRESQL_PORT`** **`ZOOKEEPER_QUORUM`** |
||||||
|
|
||||||
|
You can specify **existing postgres service**. Example: |
||||||
|
|
||||||
|
``` |
||||||
|
$ docker run -d --name dolphinscheduler \ |
||||||
|
-e POSTGRESQL_HOST="192.168.x.x" -e POSTGRESQL_PORT="5432" \ |
||||||
|
-e POSTGRESQL_USERNAME="test" -e POSTGRESQL_PASSWORD="test" \ |
||||||
|
-p 8888:8888 \ |
||||||
|
dolphinscheduler all |
||||||
|
``` |
||||||
|
|
||||||
|
You can specify **existing zookeeper service**. Example: |
||||||
|
|
||||||
``` |
``` |
||||||
cd .. |
$ docker run -d --name dolphinscheduler \ |
||||||
docker build -t dolphinscheduler --build-arg version=1.1.0 --build-arg tar_version=1.1.0-SNAPSHOT -f dockerfile/Dockerfile . |
-e ZOOKEEPER_QUORUM="l92.168.x.x:2181" |
||||||
docker run -p 12345:12345 -p 8888:8888 --rm --name dolphinscheduler -d dolphinscheduler |
-e POSTGRESQL_USERNAME="test" -e POSTGRESQL_PASSWORD="test" \ |
||||||
|
-p 8888:8888 \ |
||||||
|
dolphinscheduler all |
||||||
``` |
``` |
||||||
* Visit the url: http://127.0.0.1:8888 |
|
||||||
* UserName:admin Password:dolphinscheduler123 |
|
||||||
|
|
||||||
## Note |
#### Or start a standalone dolphinscheduler server |
||||||
* MacOS: The memory of docker needs to be set to 4G, default 2G. Steps: Preferences -> Advanced -> adjust resources -> Apply & Restart |
|
||||||
|
You can start a standalone dolphinscheduler server. |
||||||
|
|
||||||
|
* Start a **master server**, For example: |
||||||
|
|
||||||
|
``` |
||||||
|
$ docker run -d --name dolphinscheduler \ |
||||||
|
-e ZOOKEEPER_QUORUM="l92.168.x.x:2181" |
||||||
|
-e POSTGRESQL_HOST="192.168.x.x" -e POSTGRESQL_PORT="5432" \ |
||||||
|
-e POSTGRESQL_USERNAME="test" -e POSTGRESQL_PASSWORD="test" \ |
||||||
|
dolphinscheduler master-server |
||||||
|
``` |
||||||
|
|
||||||
|
* Start a **worker server**, For example: |
||||||
|
|
||||||
|
``` |
||||||
|
$ docker run -d --name dolphinscheduler \ |
||||||
|
-e ZOOKEEPER_QUORUM="l92.168.x.x:2181" |
||||||
|
-e POSTGRESQL_HOST="192.168.x.x" -e POSTGRESQL_PORT="5432" \ |
||||||
|
-e POSTGRESQL_USERNAME="test" -e POSTGRESQL_PASSWORD="test" \ |
||||||
|
dolphinscheduler worker-server |
||||||
|
``` |
||||||
|
|
||||||
|
* Start a **api server**, For example: |
||||||
|
|
||||||
|
``` |
||||||
|
$ docker run -d --name dolphinscheduler \ |
||||||
|
-e POSTGRESQL_HOST="192.168.x.x" -e POSTGRESQL_PORT="5432" \ |
||||||
|
-e POSTGRESQL_USERNAME="test" -e POSTGRESQL_PASSWORD="test" \ |
||||||
|
-p 12345:12345 \ |
||||||
|
dolphinscheduler api-server |
||||||
|
``` |
||||||
|
|
||||||
|
* Start a **alert server**, For example: |
||||||
|
|
||||||
|
``` |
||||||
|
$ docker run -d --name dolphinscheduler \ |
||||||
|
-e POSTGRESQL_HOST="192.168.x.x" -e POSTGRESQL_PORT="5432" \ |
||||||
|
-e POSTGRESQL_USERNAME="test" -e POSTGRESQL_PASSWORD="test" \ |
||||||
|
dolphinscheduler alert-server |
||||||
|
``` |
||||||
|
|
||||||
|
* Start a **frontend**, For example: |
||||||
|
|
||||||
|
``` |
||||||
|
$ docker run -d --name dolphinscheduler \ |
||||||
|
-e FRONTEND_API_SERVER_HOST="192.168.x.x" -e FRONTEND_API_SERVER_PORT="12345" \ |
||||||
|
-p 8888:8888 \ |
||||||
|
dolphinscheduler frontend |
||||||
|
``` |
||||||
|
|
||||||
|
**Note**: You must be specify `POSTGRESQL_HOST` `POSTGRESQL_PORT` `ZOOKEEPER_QUORUM` when start a standalone dolphinscheduler server. |
||||||
|
|
||||||
|
## Environment Variables |
||||||
|
|
||||||
|
The Dolphin Scheduler image uses several environment variables which are easy to miss. While none of the variables are required, they may significantly aid you in using the image. |
||||||
|
|
||||||
|
**`POSTGRESQL_HOST`** |
||||||
|
|
||||||
|
This environment variable sets the host for PostgreSQL. The default value is `127.0.0.1`. |
||||||
|
|
||||||
|
**Note**: You must be specify it when start a standalone dolphinscheduler server. Like `master-server`, `worker-server`, `api-server`, `alert-server`. |
||||||
|
|
||||||
|
**`POSTGRESQL_PORT`** |
||||||
|
|
||||||
|
This environment variable sets the port for PostgreSQL. The default value is `5432`. |
||||||
|
|
||||||
|
**Note**: You must be specify it when start a standalone dolphinscheduler server. Like `master-server`, `worker-server`, `api-server`, `alert-server`. |
||||||
|
|
||||||
|
**`POSTGRESQL_USERNAME`** |
||||||
|
|
||||||
|
This environment variable sets the username for PostgreSQL. The default value is `root`. |
||||||
|
|
||||||
|
**`POSTGRESQL_PASSWORD`** |
||||||
|
|
||||||
|
This environment variable sets the password for PostgreSQL. The default value is `root`. |
||||||
|
|
||||||
|
**`DOLPHINSCHEDULER_ENV_PATH`** |
||||||
|
|
||||||
|
This environment variable sets the runtime environment for task. The default value is `/opt/dolphinscheduler/conf/env/dolphinscheduler_env.sh`. |
||||||
|
|
||||||
|
**`TASK_QUEUE`** |
||||||
|
|
||||||
|
This environment variable sets the task queue for `master-server` and `worker-serverr`. The default value is `zookeeper`. |
||||||
|
|
||||||
|
**`ZOOKEEPER_QUORUM`** |
||||||
|
|
||||||
|
This environment variable sets zookeeper quorum for `master-server` and `worker-serverr`. The default value is `127.0.0.1:2181`. |
||||||
|
|
||||||
|
**Note**: You must be specify it when start a standalone dolphinscheduler server. Like `master-server`, `worker-server`. |
||||||
|
|
||||||
|
**`MASTER_EXEC_THREADS`** |
||||||
|
|
||||||
|
This environment variable sets exec thread num for `master-server`. The default value is `100`. |
||||||
|
|
||||||
|
**`MASTER_EXEC_TASK_NUM`** |
||||||
|
|
||||||
|
This environment variable sets exec task num for `master-server`. The default value is `20`. |
||||||
|
|
||||||
|
**`MASTER_HEARTBEAT_INTERVAL`** |
||||||
|
|
||||||
|
This environment variable sets heartbeat interval for `master-server`. The default value is `10`. |
||||||
|
|
||||||
|
**`MASTER_TASK_COMMIT_RETRYTIMES`** |
||||||
|
|
||||||
|
This environment variable sets task commit retry times for `master-server`. The default value is `5`. |
||||||
|
|
||||||
|
**`MASTER_TASK_COMMIT_INTERVAL`** |
||||||
|
|
||||||
|
This environment variable sets task commit interval for `master-server`. The default value is `1000`. |
||||||
|
|
||||||
|
**`MASTER_MAX_CPULOAD_AVG`** |
||||||
|
|
||||||
|
This environment variable sets max cpu load avg for `master-server`. The default value is `100`. |
||||||
|
|
||||||
|
**`MASTER_RESERVED_MEMORY`** |
||||||
|
|
||||||
|
This environment variable sets reserved memory for `master-server`. The default value is `0.1`. |
||||||
|
|
||||||
|
**`WORKER_EXEC_THREADS`** |
||||||
|
|
||||||
|
This environment variable sets exec thread num for `worker-server`. The default value is `100`. |
||||||
|
|
||||||
|
**`WORKER_HEARTBEAT_INTERVAL`** |
||||||
|
|
||||||
|
This environment variable sets heartbeat interval for `worker-server`. The default value is `10`. |
||||||
|
|
||||||
|
**`WORKER_FETCH_TASK_NUM`** |
||||||
|
|
||||||
|
This environment variable sets fetch task num for `worker-server`. The default value is `3`. |
||||||
|
|
||||||
|
**`WORKER_MAX_CPULOAD_AVG`** |
||||||
|
|
||||||
|
This environment variable sets max cpu load avg for `worker-server`. The default value is `100`. |
||||||
|
|
||||||
|
**`WORKER_RESERVED_MEMORY`** |
||||||
|
|
||||||
|
This environment variable sets reserved memory for `worker-server`. The default value is `0.1`. |
||||||
|
|
||||||
|
**`XLS_FILE_PATH`** |
||||||
|
|
||||||
|
This environment variable sets xls file path for `alert-server`. The default value is `/tmp/xls`. |
||||||
|
|
||||||
|
**`MAIL_SERVER_HOST`** |
||||||
|
|
||||||
|
This environment variable sets mail server host for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`MAIL_SERVER_PORT`** |
||||||
|
|
||||||
|
This environment variable sets mail server port for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`MAIL_SENDER`** |
||||||
|
|
||||||
|
This environment variable sets mail sender for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`MAIL_USER=`** |
||||||
|
|
||||||
|
This environment variable sets mail user for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`MAIL_PASSWD`** |
||||||
|
|
||||||
|
This environment variable sets mail password for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`MAIL_SMTP_STARTTLS_ENABLE`** |
||||||
|
|
||||||
|
This environment variable sets SMTP tls for `alert-server`. The default value is `true`. |
||||||
|
|
||||||
|
**`MAIL_SMTP_SSL_ENABLE`** |
||||||
|
|
||||||
|
This environment variable sets SMTP ssl for `alert-server`. The default value is `false`. |
||||||
|
|
||||||
|
**`MAIL_SMTP_SSL_TRUST`** |
||||||
|
|
||||||
|
This environment variable sets SMTP ssl truest for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`ENTERPRISE_WECHAT_ENABLE`** |
||||||
|
|
||||||
|
This environment variable sets enterprise wechat enable for `alert-server`. The default value is `false`. |
||||||
|
|
||||||
|
**`ENTERPRISE_WECHAT_CORP_ID`** |
||||||
|
|
||||||
|
This environment variable sets enterprise wechat corp id for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`ENTERPRISE_WECHAT_SECRET`** |
||||||
|
|
||||||
|
This environment variable sets enterprise wechat secret for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`ENTERPRISE_WECHAT_AGENT_ID`** |
||||||
|
|
||||||
|
This environment variable sets enterprise wechat agent id for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`ENTERPRISE_WECHAT_USERS`** |
||||||
|
|
||||||
|
This environment variable sets enterprise wechat users for `alert-server`. The default value is empty. |
||||||
|
|
||||||
|
**`FRONTEND_API_SERVER_HOST`** |
||||||
|
|
||||||
|
This environment variable sets api server host for `frontend`. The default value is `127.0.0.1`. |
||||||
|
|
||||||
|
**Note**: You must be specify it when start a standalone dolphinscheduler server. Like `api-server`. |
||||||
|
|
||||||
|
**`FRONTEND_API_SERVER_PORT`** |
||||||
|
|
||||||
|
This environment variable sets api server port for `frontend`. The default value is `123451`. |
||||||
|
|
||||||
|
**Note**: You must be specify it when start a standalone dolphinscheduler server. Like `api-server`. |
||||||
|
|
||||||
|
## Initialization scripts |
||||||
|
|
||||||
|
If you would like to do additional initialization in an image derived from this one, add one or more environment variable under `/root/start-init-conf.sh`, and modify template files in `/opt/dolphinscheduler/conf/*.tpl`. |
||||||
|
|
||||||
|
For example, to add an environment variable `API_SERVER_PORT` in `/root/start-init-conf.sh`: |
||||||
|
|
||||||
|
``` |
||||||
|
export API_SERVER_PORT=5555 |
||||||
|
``` |
||||||
|
|
||||||
|
and to modify `/opt/dolphinscheduler/conf/application-api.properties.tpl` template file, add server port: |
||||||
|
``` |
||||||
|
server.port=${API_SERVER_PORT} |
||||||
|
``` |
||||||
|
|
||||||
|
`/root/start-init-conf.sh` will dynamically generate config file: |
||||||
|
|
||||||
|
```sh |
||||||
|
echo "generate app config" |
||||||
|
ls ${DOLPHINSCHEDULER_HOME}/conf/ | grep ".tpl" | while read line; do |
||||||
|
eval "cat << EOF |
||||||
|
$(cat ${DOLPHINSCHEDULER_HOME}/conf/${line}) |
||||||
|
EOF |
||||||
|
" > ${DOLPHINSCHEDULER_HOME}/conf/${line%.*} |
||||||
|
done |
||||||
|
|
||||||
|
echo "generate nginx config" |
||||||
|
sed -i "s/FRONTEND_API_SERVER_HOST/${FRONTEND_API_SERVER_HOST}/g" /etc/nginx/conf.d/dolphinscheduler.conf |
||||||
|
sed -i "s/FRONTEND_API_SERVER_PORT/${FRONTEND_API_SERVER_PORT}/g" /etc/nginx/conf.d/dolphinscheduler.conf |
||||||
|
``` |
||||||
|
@ -1,49 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- Logback configuration. See http://logback.qos.ch/manual/index.html --> |
|
||||||
<configuration scan="true" scanPeriod="120 seconds"> <!--debug="true" --> |
|
||||||
<property name="log.base" value="logs" /> |
|
||||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
|
||||||
<encoder> |
|
||||||
<pattern> |
|
||||||
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n |
|
||||||
</pattern> |
|
||||||
<charset>UTF-8</charset> |
|
||||||
</encoder> |
|
||||||
</appender> |
|
||||||
|
|
||||||
<appender name="ALERTLOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||||
<file>${log.base}/dolphinscheduler-alert.log</file> |
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|
||||||
<fileNamePattern>${log.base}/dolphinscheduler-alert.%d{yyyy-MM-dd_HH}.%i.log</fileNamePattern> |
|
||||||
<maxHistory>20</maxHistory> |
|
||||||
<maxFileSize>64MB</maxFileSize> |
|
||||||
</rollingPolicy> |
|
||||||
<encoder> |
|
||||||
<pattern> |
|
||||||
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n |
|
||||||
</pattern> |
|
||||||
<charset>UTF-8</charset> |
|
||||||
</encoder> |
|
||||||
</appender> |
|
||||||
|
|
||||||
<root level="INFO"> |
|
||||||
<appender-ref ref="ALERTLOGFILE"/> |
|
||||||
</root> |
|
||||||
</configuration> |
|
@ -1,60 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- Logback configuration. See http://logback.qos.ch/manual/index.html --> |
|
||||||
<configuration scan="true" scanPeriod="120 seconds"> |
|
||||||
<logger name="org.apache.zookeeper" level="WARN"/> |
|
||||||
<logger name="org.apache.hbase" level="WARN"/> |
|
||||||
<logger name="org.apache.hadoop" level="WARN"/> |
|
||||||
|
|
||||||
<property name="log.base" value="logs" /> |
|
||||||
|
|
||||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
|
||||||
<encoder> |
|
||||||
<pattern> |
|
||||||
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n |
|
||||||
</pattern> |
|
||||||
<charset>UTF-8</charset> |
|
||||||
</encoder> |
|
||||||
</appender> |
|
||||||
|
|
||||||
<appender name="APISERVERLOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||||
<!-- Log level filter --> |
|
||||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||||
<level>INFO</level> |
|
||||||
</filter> |
|
||||||
<file>${log.base}/dolphinscheduler-api-server.log</file> |
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|
||||||
<fileNamePattern>${log.base}/dolphinscheduler-api-server.%d{yyyy-MM-dd_HH}.%i.log</fileNamePattern> |
|
||||||
<maxHistory>168</maxHistory> |
|
||||||
<maxFileSize>64MB</maxFileSize> |
|
||||||
</rollingPolicy> |
|
||||||
|
|
||||||
<encoder> |
|
||||||
<pattern> |
|
||||||
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n |
|
||||||
</pattern> |
|
||||||
<charset>UTF-8</charset> |
|
||||||
</encoder> |
|
||||||
|
|
||||||
</appender> |
|
||||||
|
|
||||||
<root level="INFO"> |
|
||||||
<appender-ref ref="APISERVERLOGFILE" /> |
|
||||||
</root> |
|
||||||
</configuration> |
|
@ -1,35 +0,0 @@ |
|||||||
# |
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
# contributor license agreements. See the NOTICE file distributed with |
|
||||||
# this work for additional information regarding copyright ownership. |
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
# (the "License"); you may not use this file except in compliance with |
|
||||||
# the License. You may obtain a copy of the License at |
|
||||||
# |
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
# |
|
||||||
# Unless required by applicable law or agreed to in writing, software |
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
# See the License for the specific language governing permissions and |
|
||||||
# limitations under the License. |
|
||||||
# |
|
||||||
|
|
||||||
# ha or single namenode,If namenode ha needs to copy core-site.xml and hdfs-site.xml |
|
||||||
# to the conf directory,support s3,for example : s3a://dolphinscheduler |
|
||||||
fs.defaultFS=hdfs://mycluster:8020 |
|
||||||
|
|
||||||
# s3 need,s3 endpoint |
|
||||||
fs.s3a.endpoint=http://192.168.199.91:9010 |
|
||||||
|
|
||||||
# s3 need,s3 access key |
|
||||||
fs.s3a.access.key=A3DXS30FO22544RE |
|
||||||
|
|
||||||
# s3 need,s3 secret key |
|
||||||
fs.s3a.secret.key=OloCLq3n+8+sdPHUhJ21XrSxTC+JK |
|
||||||
|
|
||||||
#resourcemanager ha note this need ips , this empty if single |
|
||||||
yarn.resourcemanager.ha.rm.ids=192.168.xx.xx,192.168.xx.xx |
|
||||||
|
|
||||||
# If it is a single resourcemanager, you only need to configure one host name. If it is resourcemanager HA, the default configuration is fine |
|
||||||
yarn.application.status.address=http://ark1:8088/ws/v1/cluster/apps/%s |
|
@ -1,20 +0,0 @@ |
|||||||
# |
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
# contributor license agreements. See the NOTICE file distributed with |
|
||||||
# this work for additional information regarding copyright ownership. |
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
# (the "License"); you may not use this file except in compliance with |
|
||||||
# the License. You may obtain a copy of the License at |
|
||||||
# |
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
# |
|
||||||
# Unless required by applicable law or agreed to in writing, software |
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
# See the License for the specific language governing permissions and |
|
||||||
# limitations under the License. |
|
||||||
# |
|
||||||
|
|
||||||
installPath=/data1_1T/dolphinscheduler |
|
||||||
deployUser=dolphinscheduler |
|
||||||
ips=ark0,ark1,ark2,ark3,ark4 |
|
@ -1,21 +0,0 @@ |
|||||||
# |
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
# contributor license agreements. See the NOTICE file distributed with |
|
||||||
# this work for additional information regarding copyright ownership. |
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
# (the "License"); you may not use this file except in compliance with |
|
||||||
# the License. You may obtain a copy of the License at |
|
||||||
# |
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
# |
|
||||||
# Unless required by applicable law or agreed to in writing, software |
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
# See the License for the specific language governing permissions and |
|
||||||
# limitations under the License. |
|
||||||
# |
|
||||||
|
|
||||||
export PYTHON_HOME=/usr/bin/python |
|
||||||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 |
|
||||||
export PATH=$PYTHON_HOME:$JAVA_HOME/bin:$PATH |
|
||||||
export DATAX_HOME=/opt/datax/bin/datax.py |
|
@ -1,20 +0,0 @@ |
|||||||
# |
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
# contributor license agreements. See the NOTICE file distributed with |
|
||||||
# this work for additional information regarding copyright ownership. |
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
# (the "License"); you may not use this file except in compliance with |
|
||||||
# the License. You may obtain a copy of the License at |
|
||||||
# |
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
# |
|
||||||
# Unless required by applicable law or agreed to in writing, software |
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
# See the License for the specific language governing permissions and |
|
||||||
# limitations under the License. |
|
||||||
# |
|
||||||
|
|
||||||
export PYTHON_HOME=/usr/bin/python |
|
||||||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 |
|
||||||
export PATH=$PYTHON_HOME:$JAVA_HOME/bin:$PATH |
|
@ -1,252 +0,0 @@ |
|||||||
# |
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
# contributor license agreements. See the NOTICE file distributed with |
|
||||||
# this work for additional information regarding copyright ownership. |
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
# (the "License"); you may not use this file except in compliance with |
|
||||||
# the License. You may obtain a copy of the License at |
|
||||||
# |
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
# |
|
||||||
# Unless required by applicable law or agreed to in writing, software |
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
# See the License for the specific language governing permissions and |
|
||||||
# limitations under the License. |
|
||||||
# |
|
||||||
|
|
||||||
QUERY_SCHEDULE_LIST_NOTES=query schedule list |
|
||||||
EXECUTE_PROCESS_TAG=execute process related operation |
|
||||||
PROCESS_INSTANCE_EXECUTOR_TAG=process instance executor related operation |
|
||||||
RUN_PROCESS_INSTANCE_NOTES=run process instance |
|
||||||
START_NODE_LIST=start node list(node name) |
|
||||||
TASK_DEPEND_TYPE=task depend type |
|
||||||
COMMAND_TYPE=command type |
|
||||||
RUN_MODE=run mode |
|
||||||
TIMEOUT=timeout |
|
||||||
EXECUTE_ACTION_TO_PROCESS_INSTANCE_NOTES=execute action to process instance |
|
||||||
EXECUTE_TYPE=execute type |
|
||||||
START_CHECK_PROCESS_DEFINITION_NOTES=start check process definition |
|
||||||
GET_RECEIVER_CC_NOTES=query receiver cc |
|
||||||
DESC=description |
|
||||||
GROUP_NAME=group name |
|
||||||
GROUP_TYPE=group type |
|
||||||
QUERY_ALERT_GROUP_LIST_NOTES=query alert group list |
|
||||||
UPDATE_ALERT_GROUP_NOTES=update alert group |
|
||||||
DELETE_ALERT_GROUP_BY_ID_NOTES=delete alert group by id |
|
||||||
VERIFY_ALERT_GROUP_NAME_NOTES=verify alert group name, check alert group exist or not |
|
||||||
GRANT_ALERT_GROUP_NOTES=grant alert group |
|
||||||
USER_IDS=user id list |
|
||||||
ALERT_GROUP_TAG=alert group related operation |
|
||||||
CREATE_ALERT_GROUP_NOTES=create alert group |
|
||||||
WORKER_GROUP_TAG=worker group related operation |
|
||||||
SAVE_WORKER_GROUP_NOTES=create worker group |
|
||||||
WORKER_GROUP_NAME=worker group name |
|
||||||
WORKER_IP_LIST=worker ip list, eg. 192.168.1.1,192.168.1.2 |
|
||||||
QUERY_WORKER_GROUP_PAGING_NOTES=query worker group paging |
|
||||||
QUERY_WORKER_GROUP_LIST_NOTES=query worker group list |
|
||||||
DELETE_WORKER_GROUP_BY_ID_NOTES=delete worker group by id |
|
||||||
DATA_ANALYSIS_TAG=analysis related operation of task state |
|
||||||
COUNT_TASK_STATE_NOTES=count task state |
|
||||||
COUNT_PROCESS_INSTANCE_NOTES=count process instance state |
|
||||||
COUNT_PROCESS_DEFINITION_BY_USER_NOTES=count process definition by user |
|
||||||
COUNT_COMMAND_STATE_NOTES=count command state |
|
||||||
COUNT_QUEUE_STATE_NOTES=count the running status of the task in the queue\ |
|
||||||
|
|
||||||
ACCESS_TOKEN_TAG=access token related operation |
|
||||||
MONITOR_TAG=monitor related operation |
|
||||||
MASTER_LIST_NOTES=master server list |
|
||||||
WORKER_LIST_NOTES=worker server list |
|
||||||
QUERY_DATABASE_STATE_NOTES=query database state |
|
||||||
QUERY_ZOOKEEPER_STATE_NOTES=QUERY ZOOKEEPER STATE |
|
||||||
TASK_STATE=task instance state |
|
||||||
SOURCE_TABLE=SOURCE TABLE |
|
||||||
DEST_TABLE=dest table |
|
||||||
TASK_DATE=task date |
|
||||||
QUERY_HISTORY_TASK_RECORD_LIST_PAGING_NOTES=query history task record list paging |
|
||||||
DATA_SOURCE_TAG=data source related operation |
|
||||||
CREATE_DATA_SOURCE_NOTES=create data source |
|
||||||
DATA_SOURCE_NAME=data source name |
|
||||||
DATA_SOURCE_NOTE=data source desc |
|
||||||
DB_TYPE=database type |
|
||||||
DATA_SOURCE_HOST=DATA SOURCE HOST |
|
||||||
DATA_SOURCE_PORT=data source port |
|
||||||
DATABASE_NAME=database name |
|
||||||
QUEUE_TAG=queue related operation |
|
||||||
QUERY_QUEUE_LIST_NOTES=query queue list |
|
||||||
QUERY_QUEUE_LIST_PAGING_NOTES=query queue list paging |
|
||||||
CREATE_QUEUE_NOTES=create queue |
|
||||||
YARN_QUEUE_NAME=yarn(hadoop) queue name |
|
||||||
QUEUE_ID=queue id |
|
||||||
TENANT_DESC=tenant desc |
|
||||||
QUERY_TENANT_LIST_PAGING_NOTES=query tenant list paging |
|
||||||
QUERY_TENANT_LIST_NOTES=query tenant list |
|
||||||
UPDATE_TENANT_NOTES=update tenant |
|
||||||
DELETE_TENANT_NOTES=delete tenant |
|
||||||
RESOURCES_TAG=resource center related operation |
|
||||||
CREATE_RESOURCE_NOTES=create resource |
|
||||||
RESOURCE_TYPE=resource file type |
|
||||||
RESOURCE_NAME=resource name |
|
||||||
RESOURCE_DESC=resource file desc |
|
||||||
RESOURCE_FILE=resource file |
|
||||||
RESOURCE_ID=resource id |
|
||||||
QUERY_RESOURCE_LIST_NOTES=query resource list |
|
||||||
DELETE_RESOURCE_BY_ID_NOTES=delete resource by id |
|
||||||
VIEW_RESOURCE_BY_ID_NOTES=view resource by id |
|
||||||
ONLINE_CREATE_RESOURCE_NOTES=online create resource |
|
||||||
SUFFIX=resource file suffix |
|
||||||
CONTENT=resource file content |
|
||||||
UPDATE_RESOURCE_NOTES=edit resource file online |
|
||||||
DOWNLOAD_RESOURCE_NOTES=download resource file |
|
||||||
CREATE_UDF_FUNCTION_NOTES=create udf function |
|
||||||
UDF_TYPE=UDF type |
|
||||||
FUNC_NAME=function name |
|
||||||
CLASS_NAME=package and class name |
|
||||||
ARG_TYPES=arguments |
|
||||||
UDF_DESC=udf desc |
|
||||||
VIEW_UDF_FUNCTION_NOTES=view udf function |
|
||||||
UPDATE_UDF_FUNCTION_NOTES=update udf function |
|
||||||
QUERY_UDF_FUNCTION_LIST_PAGING_NOTES=query udf function list paging |
|
||||||
VERIFY_UDF_FUNCTION_NAME_NOTES=verify udf function name |
|
||||||
DELETE_UDF_FUNCTION_NOTES=delete udf function |
|
||||||
AUTHORIZED_FILE_NOTES=authorized file |
|
||||||
UNAUTHORIZED_FILE_NOTES=unauthorized file |
|
||||||
AUTHORIZED_UDF_FUNC_NOTES=authorized udf func |
|
||||||
UNAUTHORIZED_UDF_FUNC_NOTES=unauthorized udf func |
|
||||||
VERIFY_QUEUE_NOTES=verify queue |
|
||||||
TENANT_TAG=tenant related operation |
|
||||||
CREATE_TENANT_NOTES=create tenant |
|
||||||
TENANT_CODE=tenant code |
|
||||||
TENANT_NAME=tenant name |
|
||||||
QUEUE_NAME=queue name |
|
||||||
PASSWORD=password |
|
||||||
DATA_SOURCE_OTHER=jdbc connection params, format:{"key1":"value1",...} |
|
||||||
PROJECT_TAG=project related operation |
|
||||||
CREATE_PROJECT_NOTES=create project |
|
||||||
PROJECT_DESC=project description |
|
||||||
UPDATE_PROJECT_NOTES=update project |
|
||||||
PROJECT_ID=project id |
|
||||||
QUERY_PROJECT_BY_ID_NOTES=query project info by project id |
|
||||||
QUERY_PROJECT_LIST_PAGING_NOTES=QUERY PROJECT LIST PAGING |
|
||||||
DELETE_PROJECT_BY_ID_NOTES=delete project by id |
|
||||||
QUERY_UNAUTHORIZED_PROJECT_NOTES=query unauthorized project |
|
||||||
QUERY_ALL_PROJECT_LIST_NOTES=query all project list |
|
||||||
QUERY_AUTHORIZED_PROJECT_NOTES=query authorized project |
|
||||||
TASK_RECORD_TAG=task record related operation |
|
||||||
QUERY_TASK_RECORD_LIST_PAGING_NOTES=query task record list paging |
|
||||||
CREATE_TOKEN_NOTES=create token ,note: please login first |
|
||||||
QUERY_ACCESS_TOKEN_LIST_NOTES=query access token list paging |
|
||||||
SCHEDULE=schedule |
|
||||||
WARNING_TYPE=warning type(sending strategy) |
|
||||||
WARNING_GROUP_ID=warning group id |
|
||||||
FAILURE_STRATEGY=failure strategy |
|
||||||
RECEIVERS=receivers |
|
||||||
RECEIVERS_CC=receivers cc |
|
||||||
WORKER_GROUP_ID=worker server group id |
|
||||||
PROCESS_INSTANCE_PRIORITY=process instance priority |
|
||||||
UPDATE_SCHEDULE_NOTES=update schedule |
|
||||||
SCHEDULE_ID=schedule id |
|
||||||
ONLINE_SCHEDULE_NOTES=online schedule |
|
||||||
OFFLINE_SCHEDULE_NOTES=offline schedule |
|
||||||
QUERY_SCHEDULE_NOTES=query schedule |
|
||||||
QUERY_SCHEDULE_LIST_PAGING_NOTES=query schedule list paging |
|
||||||
LOGIN_TAG=User login related operations |
|
||||||
USER_NAME=user name |
|
||||||
PROJECT_NAME=project name |
|
||||||
CREATE_PROCESS_DEFINITION_NOTES=create process definition |
|
||||||
PROCESS_DEFINITION_NAME=process definition name |
|
||||||
PROCESS_DEFINITION_JSON=process definition detail info (json format) |
|
||||||
PROCESS_DEFINITION_LOCATIONS=process definition node locations info (json format) |
|
||||||
PROCESS_INSTANCE_LOCATIONS=process instance node locations info (json format) |
|
||||||
PROCESS_DEFINITION_CONNECTS=process definition node connects info (json format) |
|
||||||
PROCESS_INSTANCE_CONNECTS=process instance node connects info (json format) |
|
||||||
PROCESS_DEFINITION_DESC=process definition desc |
|
||||||
PROCESS_DEFINITION_TAG=process definition related opertation |
|
||||||
SIGNOUT_NOTES=logout |
|
||||||
USER_PASSWORD=user password |
|
||||||
UPDATE_PROCESS_INSTANCE_NOTES=update process instance |
|
||||||
QUERY_PROCESS_INSTANCE_LIST_NOTES=query process instance list |
|
||||||
VERIFY_PROCCESS_DEFINITION_NAME_NOTES=verify proccess definition name |
|
||||||
LOGIN_NOTES=user login |
|
||||||
UPDATE_PROCCESS_DEFINITION_NOTES=update proccess definition |
|
||||||
PROCESS_DEFINITION_ID=process definition id |
|
||||||
PROCESS_DEFINITION_IDS=process definition ids |
|
||||||
RELEASE_PROCCESS_DEFINITION_NOTES=release proccess definition |
|
||||||
QUERY_PROCCESS_DEFINITION_BY_ID_NOTES=query proccess definition by id |
|
||||||
QUERY_PROCCESS_DEFINITION_LIST_NOTES=query proccess definition list |
|
||||||
QUERY_PROCCESS_DEFINITION_LIST_PAGING_NOTES=query proccess definition list paging |
|
||||||
QUERY_ALL_DEFINITION_LIST_NOTES=query all definition list |
|
||||||
PAGE_NO=page no |
|
||||||
PROCESS_INSTANCE_ID=process instance id |
|
||||||
PROCESS_INSTANCE_JSON=process instance info(json format) |
|
||||||
SCHEDULE_TIME=schedule time |
|
||||||
SYNC_DEFINE=update the information of the process instance to the process definition\ |
|
||||||
|
|
||||||
RECOVERY_PROCESS_INSTANCE_FLAG=whether to recovery process instance |
|
||||||
SEARCH_VAL=search val |
|
||||||
USER_ID=user id |
|
||||||
PAGE_SIZE=page size |
|
||||||
LIMIT=limit |
|
||||||
VIEW_TREE_NOTES=view tree |
|
||||||
GET_NODE_LIST_BY_DEFINITION_ID_NOTES=get task node list by process definition id |
|
||||||
PROCESS_DEFINITION_ID_LIST=process definition id list |
|
||||||
QUERY_PROCCESS_DEFINITION_All_BY_PROJECT_ID_NOTES=query proccess definition all by project id |
|
||||||
DELETE_PROCESS_DEFINITION_BY_ID_NOTES=delete process definition by process definition id |
|
||||||
BATCH_DELETE_PROCESS_DEFINITION_BY_IDS_NOTES=batch delete process definition by process definition ids |
|
||||||
QUERY_PROCESS_INSTANCE_BY_ID_NOTES=query process instance by process instance id |
|
||||||
DELETE_PROCESS_INSTANCE_BY_ID_NOTES=delete process instance by process instance id |
|
||||||
TASK_ID=task instance id |
|
||||||
SKIP_LINE_NUM=skip line num |
|
||||||
QUERY_TASK_INSTANCE_LOG_NOTES=query task instance log |
|
||||||
DOWNLOAD_TASK_INSTANCE_LOG_NOTES=download task instance log |
|
||||||
USERS_TAG=users related operation |
|
||||||
SCHEDULER_TAG=scheduler related operation |
|
||||||
CREATE_SCHEDULE_NOTES=create schedule |
|
||||||
CREATE_USER_NOTES=create user |
|
||||||
TENANT_ID=tenant id |
|
||||||
QUEUE=queue |
|
||||||
EMAIL=email |
|
||||||
PHONE=phone |
|
||||||
QUERY_USER_LIST_NOTES=query user list |
|
||||||
UPDATE_USER_NOTES=update user |
|
||||||
DELETE_USER_BY_ID_NOTES=delete user by id |
|
||||||
GRANT_PROJECT_NOTES=GRANT PROJECT |
|
||||||
PROJECT_IDS=project ids(string format, multiple projects separated by ",") |
|
||||||
GRANT_RESOURCE_NOTES=grant resource file |
|
||||||
RESOURCE_IDS=resource ids(string format, multiple resources separated by ",") |
|
||||||
GET_USER_INFO_NOTES=get user info |
|
||||||
LIST_USER_NOTES=list user |
|
||||||
VERIFY_USER_NAME_NOTES=verify user name |
|
||||||
UNAUTHORIZED_USER_NOTES=cancel authorization |
|
||||||
ALERT_GROUP_ID=alert group id |
|
||||||
AUTHORIZED_USER_NOTES=authorized user |
|
||||||
GRANT_UDF_FUNC_NOTES=grant udf function |
|
||||||
UDF_IDS=udf ids(string format, multiple udf functions separated by ",") |
|
||||||
GRANT_DATASOURCE_NOTES=grant datasource |
|
||||||
DATASOURCE_IDS=datasource ids(string format, multiple datasources separated by ",") |
|
||||||
QUERY_SUBPROCESS_INSTANCE_BY_TASK_ID_NOTES=query subprocess instance by task instance id |
|
||||||
QUERY_PARENT_PROCESS_INSTANCE_BY_SUB_PROCESS_INSTANCE_ID_NOTES=query parent process instance info by sub process instance id |
|
||||||
QUERY_PROCESS_INSTANCE_GLOBAL_VARIABLES_AND_LOCAL_VARIABLES_NOTES=query process instance global variables and local variables |
|
||||||
VIEW_GANTT_NOTES=view gantt |
|
||||||
SUB_PROCESS_INSTANCE_ID=sub process instance id |
|
||||||
TASK_NAME=task instance name |
|
||||||
TASK_INSTANCE_TAG=task instance related operation |
|
||||||
LOGGER_TAG=log related operation |
|
||||||
PROCESS_INSTANCE_TAG=process instance related operation |
|
||||||
EXECUTION_STATUS=runing status for workflow and task nodes |
|
||||||
HOST=ip address of running task |
|
||||||
START_DATE=start date |
|
||||||
END_DATE=end date |
|
||||||
QUERY_TASK_LIST_BY_PROCESS_INSTANCE_ID_NOTES=query task list by process instance id |
|
||||||
UPDATE_DATA_SOURCE_NOTES=update data source |
|
||||||
DATA_SOURCE_ID=DATA SOURCE ID |
|
||||||
QUERY_DATA_SOURCE_NOTES=query data source by id |
|
||||||
QUERY_DATA_SOURCE_LIST_BY_TYPE_NOTES=query data source list by database type |
|
||||||
QUERY_DATA_SOURCE_LIST_PAGING_NOTES=query data source list paging |
|
||||||
CONNECT_DATA_SOURCE_NOTES=CONNECT DATA SOURCE |
|
||||||
CONNECT_DATA_SOURCE_TEST_NOTES=connect data source test |
|
||||||
DELETE_DATA_SOURCE_NOTES=delete data source |
|
||||||
VERIFY_DATA_SOURCE_NOTES=verify data source |
|
||||||
UNAUTHORIZED_DATA_SOURCE_NOTES=unauthorized data source |
|
||||||
AUTHORIZED_DATA_SOURCE_NOTES=authorized data source |
|
||||||
DELETE_SCHEDULER_BY_ID_NOTES=delete scheduler by id |
|
@ -1,252 +0,0 @@ |
|||||||
# |
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
# contributor license agreements. See the NOTICE file distributed with |
|
||||||
# this work for additional information regarding copyright ownership. |
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
# (the "License"); you may not use this file except in compliance with |
|
||||||
# the License. You may obtain a copy of the License at |
|
||||||
# |
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
# |
|
||||||
# Unless required by applicable law or agreed to in writing, software |
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
# See the License for the specific language governing permissions and |
|
||||||
# limitations under the License. |
|
||||||
# |
|
||||||
|
|
||||||
QUERY_SCHEDULE_LIST_NOTES=query schedule list |
|
||||||
EXECUTE_PROCESS_TAG=execute process related operation |
|
||||||
PROCESS_INSTANCE_EXECUTOR_TAG=process instance executor related operation |
|
||||||
RUN_PROCESS_INSTANCE_NOTES=run process instance |
|
||||||
START_NODE_LIST=start node list(node name) |
|
||||||
TASK_DEPEND_TYPE=task depend type |
|
||||||
COMMAND_TYPE=command type |
|
||||||
RUN_MODE=run mode |
|
||||||
TIMEOUT=timeout |
|
||||||
EXECUTE_ACTION_TO_PROCESS_INSTANCE_NOTES=execute action to process instance |
|
||||||
EXECUTE_TYPE=execute type |
|
||||||
START_CHECK_PROCESS_DEFINITION_NOTES=start check process definition |
|
||||||
GET_RECEIVER_CC_NOTES=query receiver cc |
|
||||||
DESC=description |
|
||||||
GROUP_NAME=group name |
|
||||||
GROUP_TYPE=group type |
|
||||||
QUERY_ALERT_GROUP_LIST_NOTES=query alert group list |
|
||||||
UPDATE_ALERT_GROUP_NOTES=update alert group |
|
||||||
DELETE_ALERT_GROUP_BY_ID_NOTES=delete alert group by id |
|
||||||
VERIFY_ALERT_GROUP_NAME_NOTES=verify alert group name, check alert group exist or not |
|
||||||
GRANT_ALERT_GROUP_NOTES=grant alert group |
|
||||||
USER_IDS=user id list |
|
||||||
ALERT_GROUP_TAG=alert group related operation |
|
||||||
CREATE_ALERT_GROUP_NOTES=create alert group |
|
||||||
WORKER_GROUP_TAG=worker group related operation |
|
||||||
SAVE_WORKER_GROUP_NOTES=create worker group |
|
||||||
WORKER_GROUP_NAME=worker group name |
|
||||||
WORKER_IP_LIST=worker ip list, eg. 192.168.1.1,192.168.1.2 |
|
||||||
QUERY_WORKER_GROUP_PAGING_NOTES=query worker group paging |
|
||||||
QUERY_WORKER_GROUP_LIST_NOTES=query worker group list |
|
||||||
DELETE_WORKER_GROUP_BY_ID_NOTES=delete worker group by id |
|
||||||
DATA_ANALYSIS_TAG=analysis related operation of task state |
|
||||||
COUNT_TASK_STATE_NOTES=count task state |
|
||||||
COUNT_PROCESS_INSTANCE_NOTES=count process instance state |
|
||||||
COUNT_PROCESS_DEFINITION_BY_USER_NOTES=count process definition by user |
|
||||||
COUNT_COMMAND_STATE_NOTES=count command state |
|
||||||
COUNT_QUEUE_STATE_NOTES=count the running status of the task in the queue\ |
|
||||||
|
|
||||||
ACCESS_TOKEN_TAG=access token related operation |
|
||||||
MONITOR_TAG=monitor related operation |
|
||||||
MASTER_LIST_NOTES=master server list |
|
||||||
WORKER_LIST_NOTES=worker server list |
|
||||||
QUERY_DATABASE_STATE_NOTES=query database state |
|
||||||
QUERY_ZOOKEEPER_STATE_NOTES=QUERY ZOOKEEPER STATE |
|
||||||
TASK_STATE=task instance state |
|
||||||
SOURCE_TABLE=SOURCE TABLE |
|
||||||
DEST_TABLE=dest table |
|
||||||
TASK_DATE=task date |
|
||||||
QUERY_HISTORY_TASK_RECORD_LIST_PAGING_NOTES=query history task record list paging |
|
||||||
DATA_SOURCE_TAG=data source related operation |
|
||||||
CREATE_DATA_SOURCE_NOTES=create data source |
|
||||||
DATA_SOURCE_NAME=data source name |
|
||||||
DATA_SOURCE_NOTE=data source desc |
|
||||||
DB_TYPE=database type |
|
||||||
DATA_SOURCE_HOST=DATA SOURCE HOST |
|
||||||
DATA_SOURCE_PORT=data source port |
|
||||||
DATABASE_NAME=database name |
|
||||||
QUEUE_TAG=queue related operation |
|
||||||
QUERY_QUEUE_LIST_NOTES=query queue list |
|
||||||
QUERY_QUEUE_LIST_PAGING_NOTES=query queue list paging |
|
||||||
CREATE_QUEUE_NOTES=create queue |
|
||||||
YARN_QUEUE_NAME=yarn(hadoop) queue name |
|
||||||
QUEUE_ID=queue id |
|
||||||
TENANT_DESC=tenant desc |
|
||||||
QUERY_TENANT_LIST_PAGING_NOTES=query tenant list paging |
|
||||||
QUERY_TENANT_LIST_NOTES=query tenant list |
|
||||||
UPDATE_TENANT_NOTES=update tenant |
|
||||||
DELETE_TENANT_NOTES=delete tenant |
|
||||||
RESOURCES_TAG=resource center related operation |
|
||||||
CREATE_RESOURCE_NOTES=create resource |
|
||||||
RESOURCE_TYPE=resource file type |
|
||||||
RESOURCE_NAME=resource name |
|
||||||
RESOURCE_DESC=resource file desc |
|
||||||
RESOURCE_FILE=resource file |
|
||||||
RESOURCE_ID=resource id |
|
||||||
QUERY_RESOURCE_LIST_NOTES=query resource list |
|
||||||
DELETE_RESOURCE_BY_ID_NOTES=delete resource by id |
|
||||||
VIEW_RESOURCE_BY_ID_NOTES=view resource by id |
|
||||||
ONLINE_CREATE_RESOURCE_NOTES=online create resource |
|
||||||
SUFFIX=resource file suffix |
|
||||||
CONTENT=resource file content |
|
||||||
UPDATE_RESOURCE_NOTES=edit resource file online |
|
||||||
DOWNLOAD_RESOURCE_NOTES=download resource file |
|
||||||
CREATE_UDF_FUNCTION_NOTES=create udf function |
|
||||||
UDF_TYPE=UDF type |
|
||||||
FUNC_NAME=function name |
|
||||||
CLASS_NAME=package and class name |
|
||||||
ARG_TYPES=arguments |
|
||||||
UDF_DESC=udf desc |
|
||||||
VIEW_UDF_FUNCTION_NOTES=view udf function |
|
||||||
UPDATE_UDF_FUNCTION_NOTES=update udf function |
|
||||||
QUERY_UDF_FUNCTION_LIST_PAGING_NOTES=query udf function list paging |
|
||||||
VERIFY_UDF_FUNCTION_NAME_NOTES=verify udf function name |
|
||||||
DELETE_UDF_FUNCTION_NOTES=delete udf function |
|
||||||
AUTHORIZED_FILE_NOTES=authorized file |
|
||||||
UNAUTHORIZED_FILE_NOTES=unauthorized file |
|
||||||
AUTHORIZED_UDF_FUNC_NOTES=authorized udf func |
|
||||||
UNAUTHORIZED_UDF_FUNC_NOTES=unauthorized udf func |
|
||||||
VERIFY_QUEUE_NOTES=verify queue |
|
||||||
TENANT_TAG=tenant related operation |
|
||||||
CREATE_TENANT_NOTES=create tenant |
|
||||||
TENANT_CODE=tenant code |
|
||||||
TENANT_NAME=tenant name |
|
||||||
QUEUE_NAME=queue name |
|
||||||
PASSWORD=password |
|
||||||
DATA_SOURCE_OTHER=jdbc connection params, format:{"key1":"value1",...} |
|
||||||
PROJECT_TAG=project related operation |
|
||||||
CREATE_PROJECT_NOTES=create project |
|
||||||
PROJECT_DESC=project description |
|
||||||
UPDATE_PROJECT_NOTES=update project |
|
||||||
PROJECT_ID=project id |
|
||||||
QUERY_PROJECT_BY_ID_NOTES=query project info by project id |
|
||||||
QUERY_PROJECT_LIST_PAGING_NOTES=QUERY PROJECT LIST PAGING |
|
||||||
QUERY_ALL_PROJECT_LIST_NOTES=query all project list |
|
||||||
DELETE_PROJECT_BY_ID_NOTES=delete project by id |
|
||||||
QUERY_UNAUTHORIZED_PROJECT_NOTES=query unauthorized project |
|
||||||
QUERY_AUTHORIZED_PROJECT_NOTES=query authorized project |
|
||||||
TASK_RECORD_TAG=task record related operation |
|
||||||
QUERY_TASK_RECORD_LIST_PAGING_NOTES=query task record list paging |
|
||||||
CREATE_TOKEN_NOTES=create token ,note: please login first |
|
||||||
QUERY_ACCESS_TOKEN_LIST_NOTES=query access token list paging |
|
||||||
SCHEDULE=schedule |
|
||||||
WARNING_TYPE=warning type(sending strategy) |
|
||||||
WARNING_GROUP_ID=warning group id |
|
||||||
FAILURE_STRATEGY=failure strategy |
|
||||||
RECEIVERS=receivers |
|
||||||
RECEIVERS_CC=receivers cc |
|
||||||
WORKER_GROUP_ID=worker server group id |
|
||||||
PROCESS_INSTANCE_PRIORITY=process instance priority |
|
||||||
UPDATE_SCHEDULE_NOTES=update schedule |
|
||||||
SCHEDULE_ID=schedule id |
|
||||||
ONLINE_SCHEDULE_NOTES=online schedule |
|
||||||
OFFLINE_SCHEDULE_NOTES=offline schedule |
|
||||||
QUERY_SCHEDULE_NOTES=query schedule |
|
||||||
QUERY_SCHEDULE_LIST_PAGING_NOTES=query schedule list paging |
|
||||||
LOGIN_TAG=User login related operations |
|
||||||
USER_NAME=user name |
|
||||||
PROJECT_NAME=project name |
|
||||||
CREATE_PROCESS_DEFINITION_NOTES=create process definition |
|
||||||
PROCESS_DEFINITION_NAME=process definition name |
|
||||||
PROCESS_DEFINITION_JSON=process definition detail info (json format) |
|
||||||
PROCESS_DEFINITION_LOCATIONS=process definition node locations info (json format) |
|
||||||
PROCESS_INSTANCE_LOCATIONS=process instance node locations info (json format) |
|
||||||
PROCESS_DEFINITION_CONNECTS=process definition node connects info (json format) |
|
||||||
PROCESS_INSTANCE_CONNECTS=process instance node connects info (json format) |
|
||||||
PROCESS_DEFINITION_DESC=process definition desc |
|
||||||
PROCESS_DEFINITION_TAG=process definition related opertation |
|
||||||
SIGNOUT_NOTES=logout |
|
||||||
USER_PASSWORD=user password |
|
||||||
UPDATE_PROCESS_INSTANCE_NOTES=update process instance |
|
||||||
QUERY_PROCESS_INSTANCE_LIST_NOTES=query process instance list |
|
||||||
VERIFY_PROCCESS_DEFINITION_NAME_NOTES=verify proccess definition name |
|
||||||
LOGIN_NOTES=user login |
|
||||||
UPDATE_PROCCESS_DEFINITION_NOTES=update proccess definition |
|
||||||
PROCESS_DEFINITION_ID=process definition id |
|
||||||
PROCESS_DEFINITION_IDS=process definition ids |
|
||||||
RELEASE_PROCCESS_DEFINITION_NOTES=release proccess definition |
|
||||||
QUERY_PROCCESS_DEFINITION_BY_ID_NOTES=query proccess definition by id |
|
||||||
QUERY_PROCCESS_DEFINITION_LIST_NOTES=query proccess definition list |
|
||||||
QUERY_PROCCESS_DEFINITION_LIST_PAGING_NOTES=query proccess definition list paging |
|
||||||
QUERY_ALL_DEFINITION_LIST_NOTES=query all definition list |
|
||||||
PAGE_NO=page no |
|
||||||
PROCESS_INSTANCE_ID=process instance id |
|
||||||
PROCESS_INSTANCE_JSON=process instance info(json format) |
|
||||||
SCHEDULE_TIME=schedule time |
|
||||||
SYNC_DEFINE=update the information of the process instance to the process definition\ |
|
||||||
|
|
||||||
RECOVERY_PROCESS_INSTANCE_FLAG=whether to recovery process instance |
|
||||||
SEARCH_VAL=search val |
|
||||||
USER_ID=user id |
|
||||||
PAGE_SIZE=page size |
|
||||||
LIMIT=limit |
|
||||||
VIEW_TREE_NOTES=view tree |
|
||||||
GET_NODE_LIST_BY_DEFINITION_ID_NOTES=get task node list by process definition id |
|
||||||
PROCESS_DEFINITION_ID_LIST=process definition id list |
|
||||||
QUERY_PROCCESS_DEFINITION_All_BY_PROJECT_ID_NOTES=query proccess definition all by project id |
|
||||||
DELETE_PROCESS_DEFINITION_BY_ID_NOTES=delete process definition by process definition id |
|
||||||
BATCH_DELETE_PROCESS_DEFINITION_BY_IDS_NOTES=batch delete process definition by process definition ids |
|
||||||
QUERY_PROCESS_INSTANCE_BY_ID_NOTES=query process instance by process instance id |
|
||||||
DELETE_PROCESS_INSTANCE_BY_ID_NOTES=delete process instance by process instance id |
|
||||||
TASK_ID=task instance id |
|
||||||
SKIP_LINE_NUM=skip line num |
|
||||||
QUERY_TASK_INSTANCE_LOG_NOTES=query task instance log |
|
||||||
DOWNLOAD_TASK_INSTANCE_LOG_NOTES=download task instance log |
|
||||||
USERS_TAG=users related operation |
|
||||||
SCHEDULER_TAG=scheduler related operation |
|
||||||
CREATE_SCHEDULE_NOTES=create schedule |
|
||||||
CREATE_USER_NOTES=create user |
|
||||||
TENANT_ID=tenant id |
|
||||||
QUEUE=queue |
|
||||||
EMAIL=email |
|
||||||
PHONE=phone |
|
||||||
QUERY_USER_LIST_NOTES=query user list |
|
||||||
UPDATE_USER_NOTES=update user |
|
||||||
DELETE_USER_BY_ID_NOTES=delete user by id |
|
||||||
GRANT_PROJECT_NOTES=GRANT PROJECT |
|
||||||
PROJECT_IDS=project ids(string format, multiple projects separated by ",") |
|
||||||
GRANT_RESOURCE_NOTES=grant resource file |
|
||||||
RESOURCE_IDS=resource ids(string format, multiple resources separated by ",") |
|
||||||
GET_USER_INFO_NOTES=get user info |
|
||||||
LIST_USER_NOTES=list user |
|
||||||
VERIFY_USER_NAME_NOTES=verify user name |
|
||||||
UNAUTHORIZED_USER_NOTES=cancel authorization |
|
||||||
ALERT_GROUP_ID=alert group id |
|
||||||
AUTHORIZED_USER_NOTES=authorized user |
|
||||||
GRANT_UDF_FUNC_NOTES=grant udf function |
|
||||||
UDF_IDS=udf ids(string format, multiple udf functions separated by ",") |
|
||||||
GRANT_DATASOURCE_NOTES=grant datasource |
|
||||||
DATASOURCE_IDS=datasource ids(string format, multiple datasources separated by ",") |
|
||||||
QUERY_SUBPROCESS_INSTANCE_BY_TASK_ID_NOTES=query subprocess instance by task instance id |
|
||||||
QUERY_PARENT_PROCESS_INSTANCE_BY_SUB_PROCESS_INSTANCE_ID_NOTES=query parent process instance info by sub process instance id |
|
||||||
QUERY_PROCESS_INSTANCE_GLOBAL_VARIABLES_AND_LOCAL_VARIABLES_NOTES=query process instance global variables and local variables |
|
||||||
VIEW_GANTT_NOTES=view gantt |
|
||||||
SUB_PROCESS_INSTANCE_ID=sub process instance id |
|
||||||
TASK_NAME=task instance name |
|
||||||
TASK_INSTANCE_TAG=task instance related operation |
|
||||||
LOGGER_TAG=log related operation |
|
||||||
PROCESS_INSTANCE_TAG=process instance related operation |
|
||||||
EXECUTION_STATUS=runing status for workflow and task nodes |
|
||||||
HOST=ip address of running task |
|
||||||
START_DATE=start date |
|
||||||
END_DATE=end date |
|
||||||
QUERY_TASK_LIST_BY_PROCESS_INSTANCE_ID_NOTES=query task list by process instance id |
|
||||||
UPDATE_DATA_SOURCE_NOTES=update data source |
|
||||||
DATA_SOURCE_ID=DATA SOURCE ID |
|
||||||
QUERY_DATA_SOURCE_NOTES=query data source by id |
|
||||||
QUERY_DATA_SOURCE_LIST_BY_TYPE_NOTES=query data source list by database type |
|
||||||
QUERY_DATA_SOURCE_LIST_PAGING_NOTES=query data source list paging |
|
||||||
CONNECT_DATA_SOURCE_NOTES=CONNECT DATA SOURCE |
|
||||||
CONNECT_DATA_SOURCE_TEST_NOTES=connect data source test |
|
||||||
DELETE_DATA_SOURCE_NOTES=delete data source |
|
||||||
VERIFY_DATA_SOURCE_NOTES=verify data source |
|
||||||
UNAUTHORIZED_DATA_SOURCE_NOTES=unauthorized data source |
|
||||||
AUTHORIZED_DATA_SOURCE_NOTES=authorized data source |
|
||||||
DELETE_SCHEDULER_BY_ID_NOTES=delete scheduler by id |
|
@ -1,250 +0,0 @@ |
|||||||
# |
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
# contributor license agreements. See the NOTICE file distributed with |
|
||||||
# this work for additional information regarding copyright ownership. |
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
# (the "License"); you may not use this file except in compliance with |
|
||||||
# the License. You may obtain a copy of the License at |
|
||||||
# |
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
# |
|
||||||
# Unless required by applicable law or agreed to in writing, software |
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
# See the License for the specific language governing permissions and |
|
||||||
# limitations under the License. |
|
||||||
# |
|
||||||
|
|
||||||
QUERY_SCHEDULE_LIST_NOTES=查询定时列表 |
|
||||||
PROCESS_INSTANCE_EXECUTOR_TAG=流程实例执行相关操作 |
|
||||||
RUN_PROCESS_INSTANCE_NOTES=运行流程实例 |
|
||||||
START_NODE_LIST=开始节点列表(节点name) |
|
||||||
TASK_DEPEND_TYPE=任务依赖类型 |
|
||||||
COMMAND_TYPE=指令类型 |
|
||||||
RUN_MODE=运行模式 |
|
||||||
TIMEOUT=超时时间 |
|
||||||
EXECUTE_ACTION_TO_PROCESS_INSTANCE_NOTES=执行流程实例的各种操作(暂停、停止、重跑、恢复等) |
|
||||||
EXECUTE_TYPE=执行类型 |
|
||||||
START_CHECK_PROCESS_DEFINITION_NOTES=检查流程定义 |
|
||||||
DESC=备注(描述) |
|
||||||
GROUP_NAME=组名称 |
|
||||||
GROUP_TYPE=组类型 |
|
||||||
QUERY_ALERT_GROUP_LIST_NOTES=告警组列表\ |
|
||||||
|
|
||||||
UPDATE_ALERT_GROUP_NOTES=编辑(更新)告警组 |
|
||||||
DELETE_ALERT_GROUP_BY_ID_NOTES=删除告警组通过ID |
|
||||||
VERIFY_ALERT_GROUP_NAME_NOTES=检查告警组是否存在 |
|
||||||
GRANT_ALERT_GROUP_NOTES=授权告警组 |
|
||||||
USER_IDS=用户ID列表 |
|
||||||
ALERT_GROUP_TAG=告警组相关操作 |
|
||||||
WORKER_GROUP_TAG=Worker分组管理 |
|
||||||
SAVE_WORKER_GROUP_NOTES=创建Worker分组\ |
|
||||||
|
|
||||||
WORKER_GROUP_NAME=Worker分组名称 |
|
||||||
WORKER_IP_LIST=Worker ip列表,注意:多个IP地址以逗号分割\ |
|
||||||
|
|
||||||
QUERY_WORKER_GROUP_PAGING_NOTES=Worker分组管理 |
|
||||||
QUERY_WORKER_GROUP_LIST_NOTES=查询worker group分组 |
|
||||||
DELETE_WORKER_GROUP_BY_ID_NOTES=删除worker group通过ID |
|
||||||
DATA_ANALYSIS_TAG=任务状态分析相关操作 |
|
||||||
COUNT_TASK_STATE_NOTES=任务状态统计 |
|
||||||
COUNT_PROCESS_INSTANCE_NOTES=统计流程实例状态 |
|
||||||
COUNT_PROCESS_DEFINITION_BY_USER_NOTES=统计用户创建的流程定义 |
|
||||||
COUNT_COMMAND_STATE_NOTES=统计命令状态 |
|
||||||
COUNT_QUEUE_STATE_NOTES=统计队列里任务状态 |
|
||||||
ACCESS_TOKEN_TAG=access token相关操作,需要先登录 |
|
||||||
MONITOR_TAG=监控相关操作 |
|
||||||
MASTER_LIST_NOTES=master服务列表 |
|
||||||
WORKER_LIST_NOTES=worker服务列表 |
|
||||||
QUERY_DATABASE_STATE_NOTES=查询数据库状态 |
|
||||||
QUERY_ZOOKEEPER_STATE_NOTES=查询Zookeeper状态 |
|
||||||
TASK_STATE=任务实例状态 |
|
||||||
SOURCE_TABLE=源表 |
|
||||||
DEST_TABLE=目标表 |
|
||||||
TASK_DATE=任务时间 |
|
||||||
QUERY_HISTORY_TASK_RECORD_LIST_PAGING_NOTES=分页查询历史任务记录列表 |
|
||||||
DATA_SOURCE_TAG=数据源相关操作 |
|
||||||
CREATE_DATA_SOURCE_NOTES=创建数据源 |
|
||||||
DATA_SOURCE_NAME=数据源名称 |
|
||||||
DATA_SOURCE_NOTE=数据源描述 |
|
||||||
DB_TYPE=数据源类型 |
|
||||||
DATA_SOURCE_HOST=IP主机名 |
|
||||||
DATA_SOURCE_PORT=数据源端口 |
|
||||||
DATABASE_NAME=数据库名 |
|
||||||
QUEUE_TAG=队列相关操作 |
|
||||||
QUERY_QUEUE_LIST_NOTES=查询队列列表 |
|
||||||
QUERY_QUEUE_LIST_PAGING_NOTES=分页查询队列列表 |
|
||||||
CREATE_QUEUE_NOTES=创建队列 |
|
||||||
YARN_QUEUE_NAME=hadoop yarn队列名 |
|
||||||
QUEUE_ID=队列ID |
|
||||||
TENANT_DESC=租户描述 |
|
||||||
QUERY_TENANT_LIST_PAGING_NOTES=分页查询租户列表 |
|
||||||
QUERY_TENANT_LIST_NOTES=查询租户列表 |
|
||||||
UPDATE_TENANT_NOTES=更新租户 |
|
||||||
DELETE_TENANT_NOTES=删除租户 |
|
||||||
RESOURCES_TAG=资源中心相关操作 |
|
||||||
CREATE_RESOURCE_NOTES=创建资源 |
|
||||||
RESOURCE_TYPE=资源文件类型 |
|
||||||
RESOURCE_NAME=资源文件名称 |
|
||||||
RESOURCE_DESC=资源文件描述 |
|
||||||
RESOURCE_FILE=资源文件 |
|
||||||
RESOURCE_ID=资源ID |
|
||||||
QUERY_RESOURCE_LIST_NOTES=查询资源列表 |
|
||||||
DELETE_RESOURCE_BY_ID_NOTES=删除资源通过ID |
|
||||||
VIEW_RESOURCE_BY_ID_NOTES=浏览资源通通过ID |
|
||||||
ONLINE_CREATE_RESOURCE_NOTES=在线创建资源 |
|
||||||
SUFFIX=资源文件后缀 |
|
||||||
CONTENT=资源文件内容 |
|
||||||
UPDATE_RESOURCE_NOTES=在线更新资源文件 |
|
||||||
DOWNLOAD_RESOURCE_NOTES=下载资源文件 |
|
||||||
CREATE_UDF_FUNCTION_NOTES=创建UDF函数 |
|
||||||
UDF_TYPE=UDF类型 |
|
||||||
FUNC_NAME=函数名称 |
|
||||||
CLASS_NAME=包名类名 |
|
||||||
ARG_TYPES=参数 |
|
||||||
UDF_DESC=udf描述,使用说明 |
|
||||||
VIEW_UDF_FUNCTION_NOTES=查看udf函数 |
|
||||||
UPDATE_UDF_FUNCTION_NOTES=更新udf函数 |
|
||||||
QUERY_UDF_FUNCTION_LIST_PAGING_NOTES=分页查询udf函数列表 |
|
||||||
VERIFY_UDF_FUNCTION_NAME_NOTES=验证udf函数名 |
|
||||||
DELETE_UDF_FUNCTION_NOTES=删除UDF函数 |
|
||||||
AUTHORIZED_FILE_NOTES=授权文件 |
|
||||||
UNAUTHORIZED_FILE_NOTES=取消授权文件 |
|
||||||
AUTHORIZED_UDF_FUNC_NOTES=授权udf函数 |
|
||||||
UNAUTHORIZED_UDF_FUNC_NOTES=取消udf函数授权 |
|
||||||
VERIFY_QUEUE_NOTES=验证队列 |
|
||||||
TENANT_TAG=租户相关操作 |
|
||||||
CREATE_TENANT_NOTES=创建租户 |
|
||||||
TENANT_CODE=租户编码 |
|
||||||
TENANT_NAME=租户名称 |
|
||||||
QUEUE_NAME=队列名 |
|
||||||
PASSWORD=密码 |
|
||||||
DATA_SOURCE_OTHER=jdbc连接参数,格式为:{"key1":"value1",...} |
|
||||||
PROJECT_TAG=项目相关操作 |
|
||||||
CREATE_PROJECT_NOTES=创建项目 |
|
||||||
PROJECT_DESC=项目描述 |
|
||||||
UPDATE_PROJECT_NOTES=更新项目 |
|
||||||
PROJECT_ID=项目ID |
|
||||||
QUERY_PROJECT_BY_ID_NOTES=通过项目ID查询项目信息 |
|
||||||
QUERY_PROJECT_LIST_PAGING_NOTES=分页查询项目列表 |
|
||||||
QUERY_ALL_PROJECT_LIST_NOTES=查询所有项目 |
|
||||||
DELETE_PROJECT_BY_ID_NOTES=删除项目通过ID |
|
||||||
QUERY_UNAUTHORIZED_PROJECT_NOTES=查询未授权的项目 |
|
||||||
QUERY_AUTHORIZED_PROJECT_NOTES=查询授权项目 |
|
||||||
TASK_RECORD_TAG=任务记录相关操作 |
|
||||||
QUERY_TASK_RECORD_LIST_PAGING_NOTES=分页查询任务记录列表 |
|
||||||
CREATE_TOKEN_NOTES=创建token,注意需要先登录 |
|
||||||
QUERY_ACCESS_TOKEN_LIST_NOTES=分页查询access token列表 |
|
||||||
SCHEDULE=定时 |
|
||||||
WARNING_TYPE=发送策略 |
|
||||||
WARNING_GROUP_ID=发送组ID |
|
||||||
FAILURE_STRATEGY=失败策略 |
|
||||||
RECEIVERS=收件人 |
|
||||||
RECEIVERS_CC=收件人(抄送) |
|
||||||
WORKER_GROUP_ID=Worker Server分组ID |
|
||||||
PROCESS_INSTANCE_PRIORITY=流程实例优先级 |
|
||||||
UPDATE_SCHEDULE_NOTES=更新定时 |
|
||||||
SCHEDULE_ID=定时ID |
|
||||||
ONLINE_SCHEDULE_NOTES=定时上线 |
|
||||||
OFFLINE_SCHEDULE_NOTES=定时下线 |
|
||||||
QUERY_SCHEDULE_NOTES=查询定时 |
|
||||||
QUERY_SCHEDULE_LIST_PAGING_NOTES=分页查询定时 |
|
||||||
LOGIN_TAG=用户登录相关操作 |
|
||||||
USER_NAME=用户名 |
|
||||||
PROJECT_NAME=项目名称 |
|
||||||
CREATE_PROCESS_DEFINITION_NOTES=创建流程定义 |
|
||||||
PROCESS_DEFINITION_NAME=流程定义名称 |
|
||||||
PROCESS_DEFINITION_JSON=流程定义详细信息(json格式) |
|
||||||
PROCESS_DEFINITION_LOCATIONS=流程定义节点坐标位置信息(json格式) |
|
||||||
PROCESS_INSTANCE_LOCATIONS=流程实例节点坐标位置信息(json格式) |
|
||||||
PROCESS_DEFINITION_CONNECTS=流程定义节点图标连接信息(json格式) |
|
||||||
PROCESS_INSTANCE_CONNECTS=流程实例节点图标连接信息(json格式) |
|
||||||
PROCESS_DEFINITION_DESC=流程定义描述信息 |
|
||||||
PROCESS_DEFINITION_TAG=流程定义相关操作 |
|
||||||
SIGNOUT_NOTES=退出登录 |
|
||||||
USER_PASSWORD=用户密码 |
|
||||||
UPDATE_PROCESS_INSTANCE_NOTES=更新流程实例 |
|
||||||
QUERY_PROCESS_INSTANCE_LIST_NOTES=查询流程实例列表 |
|
||||||
VERIFY_PROCCESS_DEFINITION_NAME_NOTES=验证流程定义名字 |
|
||||||
LOGIN_NOTES=用户登录 |
|
||||||
UPDATE_PROCCESS_DEFINITION_NOTES=更新流程定义 |
|
||||||
PROCESS_DEFINITION_ID=流程定义ID |
|
||||||
RELEASE_PROCCESS_DEFINITION_NOTES=发布流程定义 |
|
||||||
QUERY_PROCCESS_DEFINITION_BY_ID_NOTES=查询流程定义通过流程定义ID |
|
||||||
QUERY_PROCCESS_DEFINITION_LIST_NOTES=查询流程定义列表 |
|
||||||
QUERY_PROCCESS_DEFINITION_LIST_PAGING_NOTES=分页查询流程定义列表 |
|
||||||
QUERY_ALL_DEFINITION_LIST_NOTES=查询所有流程定义 |
|
||||||
PAGE_NO=页码号 |
|
||||||
PROCESS_INSTANCE_ID=流程实例ID |
|
||||||
PROCESS_INSTANCE_IDS=流程实例ID集合 |
|
||||||
PROCESS_INSTANCE_JSON=流程实例信息(json格式) |
|
||||||
SCHEDULE_TIME=定时时间 |
|
||||||
SYNC_DEFINE=更新流程实例的信息是否同步到流程定义 |
|
||||||
RECOVERY_PROCESS_INSTANCE_FLAG=是否恢复流程实例 |
|
||||||
SEARCH_VAL=搜索值 |
|
||||||
USER_ID=用户ID |
|
||||||
PAGE_SIZE=页大小 |
|
||||||
LIMIT=显示多少条 |
|
||||||
VIEW_TREE_NOTES=树状图 |
|
||||||
GET_NODE_LIST_BY_DEFINITION_ID_NOTES=获得任务节点列表通过流程定义ID |
|
||||||
PROCESS_DEFINITION_ID_LIST=流程定义id列表 |
|
||||||
QUERY_PROCCESS_DEFINITION_All_BY_PROJECT_ID_NOTES=查询流程定义通过项目ID |
|
||||||
BATCH_DELETE_PROCESS_DEFINITION_BY_IDS_NOTES=批量删除流程定义通过流程定义ID集合 |
|
||||||
DELETE_PROCESS_DEFINITION_BY_ID_NOTES=删除流程定义通过流程定义ID |
|
||||||
QUERY_PROCESS_INSTANCE_BY_ID_NOTES=查询流程实例通过流程实例ID |
|
||||||
DELETE_PROCESS_INSTANCE_BY_ID_NOTES=删除流程实例通过流程实例ID |
|
||||||
TASK_ID=任务实例ID |
|
||||||
SKIP_LINE_NUM=忽略行数 |
|
||||||
QUERY_TASK_INSTANCE_LOG_NOTES=查询任务实例日志 |
|
||||||
DOWNLOAD_TASK_INSTANCE_LOG_NOTES=下载任务实例日志 |
|
||||||
USERS_TAG=用户相关操作 |
|
||||||
SCHEDULER_TAG=定时相关操作 |
|
||||||
CREATE_SCHEDULE_NOTES=创建定时 |
|
||||||
CREATE_USER_NOTES=创建用户 |
|
||||||
TENANT_ID=租户ID |
|
||||||
QUEUE=使用的队列 |
|
||||||
EMAIL=邮箱 |
|
||||||
PHONE=手机号 |
|
||||||
QUERY_USER_LIST_NOTES=查询用户列表 |
|
||||||
UPDATE_USER_NOTES=更新用户 |
|
||||||
DELETE_USER_BY_ID_NOTES=删除用户通过ID |
|
||||||
GRANT_PROJECT_NOTES=授权项目 |
|
||||||
PROJECT_IDS=项目IDS(字符串格式,多个项目以","分割) |
|
||||||
GRANT_RESOURCE_NOTES=授权资源文件 |
|
||||||
RESOURCE_IDS=资源ID列表(字符串格式,多个资源ID以","分割) |
|
||||||
GET_USER_INFO_NOTES=获取用户信息 |
|
||||||
LIST_USER_NOTES=用户列表 |
|
||||||
VERIFY_USER_NAME_NOTES=验证用户名 |
|
||||||
UNAUTHORIZED_USER_NOTES=取消授权 |
|
||||||
ALERT_GROUP_ID=报警组ID |
|
||||||
AUTHORIZED_USER_NOTES=授权用户 |
|
||||||
GRANT_UDF_FUNC_NOTES=授权udf函数 |
|
||||||
UDF_IDS=udf函数id列表(字符串格式,多个udf函数ID以","分割) |
|
||||||
GRANT_DATASOURCE_NOTES=授权数据源 |
|
||||||
DATASOURCE_IDS=数据源ID列表(字符串格式,多个数据源ID以","分割) |
|
||||||
QUERY_SUBPROCESS_INSTANCE_BY_TASK_ID_NOTES=查询子流程实例通过任务实例ID |
|
||||||
QUERY_PARENT_PROCESS_INSTANCE_BY_SUB_PROCESS_INSTANCE_ID_NOTES=查询父流程实例信息通过子流程实例ID |
|
||||||
QUERY_PROCESS_INSTANCE_GLOBAL_VARIABLES_AND_LOCAL_VARIABLES_NOTES=查询流程实例全局变量和局部变量 |
|
||||||
VIEW_GANTT_NOTES=浏览Gantt图 |
|
||||||
SUB_PROCESS_INSTANCE_ID=子流程是咧ID |
|
||||||
TASK_NAME=任务实例名 |
|
||||||
TASK_INSTANCE_TAG=任务实例相关操作 |
|
||||||
LOGGER_TAG=日志相关操作 |
|
||||||
PROCESS_INSTANCE_TAG=流程实例相关操作 |
|
||||||
EXECUTION_STATUS=工作流和任务节点的运行状态 |
|
||||||
HOST=运行任务的主机IP地址 |
|
||||||
START_DATE=开始时间 |
|
||||||
END_DATE=结束时间 |
|
||||||
QUERY_TASK_LIST_BY_PROCESS_INSTANCE_ID_NOTES=通过流程实例ID查询任务列表 |
|
||||||
UPDATE_DATA_SOURCE_NOTES=更新数据源 |
|
||||||
DATA_SOURCE_ID=数据源ID |
|
||||||
QUERY_DATA_SOURCE_NOTES=查询数据源通过ID |
|
||||||
QUERY_DATA_SOURCE_LIST_BY_TYPE_NOTES=查询数据源列表通过数据源类型 |
|
||||||
QUERY_DATA_SOURCE_LIST_PAGING_NOTES=分页查询数据源列表 |
|
||||||
CONNECT_DATA_SOURCE_NOTES=连接数据源 |
|
||||||
CONNECT_DATA_SOURCE_TEST_NOTES=连接数据源测试 |
|
||||||
DELETE_DATA_SOURCE_NOTES=删除数据源 |
|
||||||
VERIFY_DATA_SOURCE_NOTES=验证数据源 |
|
||||||
UNAUTHORIZED_DATA_SOURCE_NOTES=未授权的数据源 |
|
||||||
AUTHORIZED_DATA_SOURCE_NOTES=授权的数据源 |
|
||||||
DELETE_SCHEDULER_BY_ID_NOTES=根据定时id删除定时数据 |
|
@ -1,17 +0,0 @@ |
|||||||
<#-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><title> dolphinscheduler</title><meta name='Keywords' content=''><meta name='Description' content=''><style type="text/css">table { margin-top:0px; padding-top:0px; border:1px solid; font-size: 14px; color: #333333; border-width: 1px; border-color: #666666; border-collapse: collapse; } table th { border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede; } table td { border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #ffffff; }</style></head><body style="margin:0;padding:0"><table border="1px" cellpadding="5px" cellspacing="-10px"><thead><#if title??> ${title}</#if></thead><#if content??> ${content}</#if></table></body></html> |
|
@ -1,52 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- Logback configuration. See http://logback.qos.ch/manual/index.html --> |
|
||||||
<configuration scan="true" scanPeriod="120 seconds"> <!--debug="true" --> |
|
||||||
<property name="log.base" value="logs" /> |
|
||||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
|
||||||
<encoder> |
|
||||||
<pattern> |
|
||||||
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n |
|
||||||
</pattern> |
|
||||||
<charset>UTF-8</charset> |
|
||||||
</encoder> |
|
||||||
</appender> |
|
||||||
|
|
||||||
<appender name="MASTERLOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||||
<file>${log.base}/dolphinscheduler-master.log</file> |
|
||||||
<filter class="org.apache.dolphinscheduler.server.master.log.MasterLogFilter"> |
|
||||||
<level>INFO</level> |
|
||||||
</filter> |
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|
||||||
<fileNamePattern>${log.base}/dolphinscheduler-master.%d{yyyy-MM-dd_HH}.%i.log</fileNamePattern> |
|
||||||
<maxHistory>168</maxHistory> |
|
||||||
<maxFileSize>200MB</maxFileSize> |
|
||||||
</rollingPolicy> |
|
||||||
<encoder> |
|
||||||
<pattern> |
|
||||||
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n |
|
||||||
</pattern> |
|
||||||
<charset>UTF-8</charset> |
|
||||||
</encoder> |
|
||||||
</appender> |
|
||||||
|
|
||||||
<root level="INFO"> |
|
||||||
<appender-ref ref="MASTERLOGFILE"/> |
|
||||||
</root> |
|
||||||
</configuration> |
|
@ -1,33 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.AccessTokenMapper"> |
|
||||||
<select id="selectAccessTokenPage" resultType="org.apache.dolphinscheduler.dao.entity.AccessToken"> |
|
||||||
select * from t_ds_access_token t |
|
||||||
left join t_ds_user u on t.user_id = u.id |
|
||||||
where 1 = 1 |
|
||||||
<if test="userName != null and userName != ''"> |
|
||||||
and u.user_name like concat ('%', #{userName}, '%') |
|
||||||
</if> |
|
||||||
<if test="userId != 0"> |
|
||||||
and t.user_id = #{userId} |
|
||||||
</if> |
|
||||||
order by t.update_time desc |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,47 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.AlertGroupMapper"> |
|
||||||
<select id="queryAlertGroupPage" resultType="org.apache.dolphinscheduler.dao.entity.AlertGroup"> |
|
||||||
select * from t_ds_alertgroup |
|
||||||
where 1 = 1 |
|
||||||
<if test="groupName != null and groupName != ''"> |
|
||||||
and group_name like concat('%', #{groupName}, '%') |
|
||||||
</if> |
|
||||||
order by update_time desc |
|
||||||
</select> |
|
||||||
<select id="queryByGroupName" resultType="org.apache.dolphinscheduler.dao.entity.AlertGroup"> |
|
||||||
select * from t_ds_alertgroup |
|
||||||
where group_name=#{groupName} |
|
||||||
</select> |
|
||||||
<select id="queryByUserId" resultType="org.apache.dolphinscheduler.dao.entity.AlertGroup"> |
|
||||||
select * from t_ds_alertgroup t |
|
||||||
left join t_ds_relation_user_alertgroup r on t.id=r.alertgroup_id |
|
||||||
where r.user_id=#{userId} |
|
||||||
</select> |
|
||||||
<select id="queryByAlertType" resultType="org.apache.dolphinscheduler.dao.entity.AlertGroup"> |
|
||||||
select * from t_ds_alertgroup |
|
||||||
where group_type=#{alertType} |
|
||||||
</select> |
|
||||||
<select id="queryAllGroupList" resultType="org.apache.dolphinscheduler.dao.entity.AlertGroup"> |
|
||||||
select * |
|
||||||
from t_ds_alertgroup |
|
||||||
order by update_time desc |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,26 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.AlertMapper"> |
|
||||||
<select id="listAlertByStatus" resultType="org.apache.dolphinscheduler.dao.entity.Alert"> |
|
||||||
select * |
|
||||||
from t_ds_alert |
|
||||||
where alert_status = #{alertStatus} |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,43 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.CommandMapper"> |
|
||||||
<select id="getOneToRun" resultType="org.apache.dolphinscheduler.dao.entity.Command"> |
|
||||||
select command.* from t_ds_command command |
|
||||||
join t_ds_process_definition definition on command.process_definition_id = definition.id |
|
||||||
where definition.release_state = 1 AND definition.flag = 1 |
|
||||||
order by command.update_time asc |
|
||||||
limit 1 |
|
||||||
</select> |
|
||||||
<select id="countCommandState" resultType="org.apache.dolphinscheduler.dao.entity.CommandCount"> |
|
||||||
select cmd.command_type as command_type, count(1) as count |
|
||||||
from t_ds_command cmd, t_ds_process_definition process |
|
||||||
where cmd.process_definition_id = process.id |
|
||||||
<if test="projectIdArray != null and projectIdArray.length != 0"> |
|
||||||
and process.project_id in |
|
||||||
<foreach collection="projectIdArray" index="index" item="i" open="(" close=")" separator=","> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
<if test="startTime != null and endTime != null"> |
|
||||||
and cmd.start_time <![CDATA[ >= ]]> #{startTime} and cmd.update_time <![CDATA[ <= ]]> #{endTime} |
|
||||||
</if> |
|
||||||
group by cmd.command_type |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,79 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.DataSourceMapper"> |
|
||||||
<select id="queryDataSourceByType" resultType="org.apache.dolphinscheduler.dao.entity.DataSource"> |
|
||||||
select * |
|
||||||
from t_ds_datasource |
|
||||||
where type=#{type} |
|
||||||
<if test="userId != 0"> |
|
||||||
and id in |
|
||||||
(select datasource_id |
|
||||||
from t_ds_relation_datasource_user |
|
||||||
where user_id=#{userId} |
|
||||||
union select id as datasource_id |
|
||||||
from t_ds_datasource |
|
||||||
where user_id=#{userId} |
|
||||||
) |
|
||||||
</if> |
|
||||||
|
|
||||||
</select> |
|
||||||
|
|
||||||
<select id="selectPaging" resultType="org.apache.dolphinscheduler.dao.entity.DataSource"> |
|
||||||
select * |
|
||||||
from t_ds_datasource |
|
||||||
where 1 =1 |
|
||||||
<if test="userId != 0"> |
|
||||||
and id in |
|
||||||
(select datasource_id |
|
||||||
from t_ds_relation_datasource_user |
|
||||||
where user_id=#{userId} |
|
||||||
union select id as datasource_id |
|
||||||
from t_ds_datasource |
|
||||||
where user_id=#{userId} |
|
||||||
) |
|
||||||
</if> |
|
||||||
<if test="name != null and name != ''"> |
|
||||||
and name like concat ('%', #{name}, '%') |
|
||||||
</if> |
|
||||||
order by update_time desc |
|
||||||
</select> |
|
||||||
<select id="queryDataSourceByName" resultType="org.apache.dolphinscheduler.dao.entity.DataSource"> |
|
||||||
select * |
|
||||||
from t_ds_datasource |
|
||||||
where name=#{name} |
|
||||||
</select> |
|
||||||
<select id="queryAuthedDatasource" resultType="org.apache.dolphinscheduler.dao.entity.DataSource"> |
|
||||||
select datasource.* |
|
||||||
from t_ds_datasource datasource, t_ds_relation_datasource_user rel |
|
||||||
where datasource.id = rel.datasource_id AND rel.user_id = #{userId} |
|
||||||
</select> |
|
||||||
<select id="queryDatasourceExceptUserId" resultType="org.apache.dolphinscheduler.dao.entity.DataSource"> |
|
||||||
select * |
|
||||||
from t_ds_datasource |
|
||||||
where user_id <![CDATA[ <> ]]> #{userId} |
|
||||||
</select> |
|
||||||
<select id="listAllDataSourceByType" resultType="org.apache.dolphinscheduler.dao.entity.DataSource"> |
|
||||||
select * |
|
||||||
from t_ds_datasource |
|
||||||
where type = #{type} |
|
||||||
</select> |
|
||||||
|
|
||||||
|
|
||||||
</mapper> |
|
@ -1,30 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.DataSourceUserMapper"> |
|
||||||
<delete id="deleteByUserId"> |
|
||||||
delete from t_ds_relation_datasource_user |
|
||||||
where user_id = #{userId} |
|
||||||
|
|
||||||
</delete> |
|
||||||
<delete id="deleteByDatasourceId"> |
|
||||||
delete from t_ds_relation_datasource_user |
|
||||||
where datasource_id = #{datasourceId} |
|
||||||
</delete> |
|
||||||
</mapper> |
|
@ -1,36 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ErrorCommandMapper"> |
|
||||||
<select id="countCommandState" resultType="org.apache.dolphinscheduler.dao.entity.CommandCount"> |
|
||||||
select cmd.command_type as command_type, count(1) as count |
|
||||||
from t_ds_error_command cmd, t_ds_process_definition process |
|
||||||
where cmd.process_definition_id = process.id |
|
||||||
<if test="projectIdArray != null and projectIdArray.length != 0"> |
|
||||||
and process.project_id in |
|
||||||
<foreach collection="projectIdArray" index="index" item="i" open="(" close=")" separator=","> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
<if test="startTime != null and endTime != null"> |
|
||||||
and cmd.startTime <![CDATA[ >= ]]> #{startTime} and cmd.update_time <![CDATA[ <= ]]> #{endTime} |
|
||||||
</if> |
|
||||||
group by cmd.command_type |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,96 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ProcessDefinitionMapper"> |
|
||||||
<select id="queryByDefineName" resultType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition"> |
|
||||||
select pd.*,u.user_name,p.name as project_name,t.tenant_code,t.tenant_name,q.queue,q.queue_name |
|
||||||
from t_ds_process_definition pd |
|
||||||
JOIN t_ds_user u ON pd.user_id = u.id |
|
||||||
JOIN t_ds_project p ON pd.project_id = p.id |
|
||||||
JOIN t_ds_tenant t ON t.id = u.tenant_id |
|
||||||
JOIN t_ds_queue q ON t.queue_id = q.id |
|
||||||
WHERE p.id = #{projectId} |
|
||||||
and pd.name = #{processDefinitionName} |
|
||||||
</select> |
|
||||||
<select id="queryDefineListPaging" resultType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition"> |
|
||||||
SELECT td.*,sc.schedule_release_state,tu.user_name |
|
||||||
FROM t_ds_process_definition td |
|
||||||
left join (select process_definition_id,release_state as schedule_release_state from t_ds_schedules group by process_definition_id,release_state) sc on sc.process_definition_id = td.id |
|
||||||
left join t_ds_user tu on td.user_id = tu.id |
|
||||||
where td.project_id = #{projectId} |
|
||||||
<if test=" isAdmin == false "> |
|
||||||
and tu.user_type=1 |
|
||||||
</if> |
|
||||||
<if test=" searchVal != null and searchVal != ''"> |
|
||||||
and td.name like concat('%', #{searchVal}, '%') |
|
||||||
</if> |
|
||||||
<if test=" userId != 0"> |
|
||||||
and td.user_id = #{userId} |
|
||||||
</if> |
|
||||||
order by sc.schedule_release_state desc,td.update_time desc |
|
||||||
</select> |
|
||||||
|
|
||||||
<select id="queryAllDefinitionList" resultType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition"> |
|
||||||
select * |
|
||||||
from t_ds_process_definition |
|
||||||
where project_id = #{projectId} |
|
||||||
order by create_time desc |
|
||||||
</select> |
|
||||||
<select id="queryDefinitionListByTenant" resultType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition"> |
|
||||||
select * |
|
||||||
from t_ds_process_definition |
|
||||||
where tenant_id = #{tenantId} |
|
||||||
</select> |
|
||||||
<select id="queryDefinitionListByIdList" resultType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition"> |
|
||||||
select * |
|
||||||
from t_ds_process_definition |
|
||||||
where id in |
|
||||||
<foreach collection="ids" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</select> |
|
||||||
<select id="countDefinitionGroupByUser" resultType="org.apache.dolphinscheduler.dao.entity.DefinitionGroupByUser"> |
|
||||||
SELECT td.user_id as user_id, tu.user_name as user_name, count(0) as count |
|
||||||
FROM t_ds_process_definition td |
|
||||||
JOIN t_ds_user tu on tu.id=td.user_id |
|
||||||
where 1 = 1 |
|
||||||
<if test=" isAdmin == false "> |
|
||||||
and tu.user_type=1 |
|
||||||
</if> |
|
||||||
<if test="projectIds != null and projectIds.length != 0"> |
|
||||||
and td.project_id in |
|
||||||
<foreach collection="projectIds" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
group by td.user_id,tu.user_name |
|
||||||
</select> |
|
||||||
<select id="queryByDefineId" resultType="org.apache.dolphinscheduler.dao.entity.ProcessDefinition"> |
|
||||||
SELECT |
|
||||||
pd.*, u.user_name, |
|
||||||
p.name AS project_name |
|
||||||
FROM |
|
||||||
t_ds_process_definition pd, |
|
||||||
t_ds_user u, |
|
||||||
t_ds_project p |
|
||||||
WHERE |
|
||||||
pd.user_id = u.id AND pd.project_id = p.id |
|
||||||
AND pd.id = #{processDefineId} |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,43 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ProcessInstanceMapMapper"> |
|
||||||
<delete id="deleteByParentProcessId"> |
|
||||||
delete |
|
||||||
from t_ds_relation_process_instance |
|
||||||
where parent_process_instance_id=#{parentProcessId} |
|
||||||
|
|
||||||
</delete> |
|
||||||
<select id="queryByParentId" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstanceMap"> |
|
||||||
select * |
|
||||||
from t_ds_relation_process_instance |
|
||||||
where parent_process_instance_id = #{parentProcessId} |
|
||||||
and parent_task_instance_id = #{parentTaskId} |
|
||||||
</select> |
|
||||||
<select id="queryBySubProcessId" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstanceMap"> |
|
||||||
select * |
|
||||||
from t_ds_relation_process_instance |
|
||||||
where process_instance_id = #{subProcessId} |
|
||||||
</select> |
|
||||||
<select id="querySubIdListByParentId" resultType="java.lang.Integer"> |
|
||||||
select process_instance_id |
|
||||||
from t_ds_relation_process_instance |
|
||||||
where parent_process_instance_id = #{parentInstanceId} |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,185 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ProcessInstanceMapper"> |
|
||||||
<select id="queryDetailById" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select inst.* |
|
||||||
from t_ds_process_instance inst |
|
||||||
where inst.id = #{processId} |
|
||||||
</select> |
|
||||||
<select id="queryByHostAndStatus" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select * |
|
||||||
from t_ds_process_instance |
|
||||||
where 1=1 |
|
||||||
<if test="host != null and host != ''"> |
|
||||||
and host=#{host} |
|
||||||
</if> |
|
||||||
and state in |
|
||||||
<foreach collection="states" item="i" open="(" close=")" separator=","> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
order by id asc |
|
||||||
</select> |
|
||||||
|
|
||||||
<select id="queryByTenantIdAndStatus" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select * |
|
||||||
from t_ds_process_instance |
|
||||||
where 1=1 |
|
||||||
<if test="tenantId != -1"> |
|
||||||
and tenant_id =#{tenantId} |
|
||||||
</if> |
|
||||||
and state in |
|
||||||
<foreach collection="states" item="i" open="(" close=")" separator=","> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
order by id asc |
|
||||||
</select> |
|
||||||
|
|
||||||
<select id="queryByWorkerGroupIdAndStatus" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select * |
|
||||||
from t_ds_process_instance |
|
||||||
where 1=1 |
|
||||||
<if test="workerGroupId != -1"> |
|
||||||
and worker_group_id =#{workerGroupId} |
|
||||||
</if> |
|
||||||
and state in |
|
||||||
<foreach collection="states" item="i" open="(" close=")" separator=","> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
order by id asc |
|
||||||
</select> |
|
||||||
|
|
||||||
<select id="queryProcessInstanceListPaging" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select instance.* |
|
||||||
from t_ds_process_instance instance |
|
||||||
join t_ds_process_definition define ON instance.process_definition_id = define.id |
|
||||||
where 1=1 |
|
||||||
and instance.is_sub_process=0 |
|
||||||
and define.project_id = #{projectId} |
|
||||||
<if test="processDefinitionId != 0"> |
|
||||||
and instance.process_definition_id = #{processDefinitionId} |
|
||||||
</if> |
|
||||||
<if test="searchVal != null and searchVal != ''"> |
|
||||||
and instance.name like concat('%', #{searchVal}, '%') |
|
||||||
</if> |
|
||||||
<if test="startTime != null "> |
|
||||||
and instance.start_time > #{startTime} and instance.start_time <![CDATA[ <=]]> #{endTime} |
|
||||||
</if> |
|
||||||
<if test="states != null and states != ''"> |
|
||||||
and instance.state in |
|
||||||
<foreach collection="states" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
<if test="host != null and host != ''"> |
|
||||||
and instance.host like concat('%', #{host}, '%') |
|
||||||
</if> |
|
||||||
<if test="executorId != 0"> |
|
||||||
and instance.executorId = #{executorId} |
|
||||||
</if> |
|
||||||
order by instance.start_time desc |
|
||||||
</select> |
|
||||||
<update id="setFailoverByHostAndStateArray"> |
|
||||||
update t_ds_process_instance |
|
||||||
set host=null |
|
||||||
where host =#{host} and state in |
|
||||||
<foreach collection="states" index="index" item="i" open="(" close=")" separator=","> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</update> |
|
||||||
<update id="updateProcessInstanceByState"> |
|
||||||
update t_ds_process_instance |
|
||||||
set state = #{destState} |
|
||||||
where state = #{originState} |
|
||||||
</update> |
|
||||||
|
|
||||||
<update id="updateProcessInstanceByTenantId"> |
|
||||||
update t_ds_process_instance |
|
||||||
set tenant_id = #{destTenantId} |
|
||||||
where tenant_id = #{originTenantId} |
|
||||||
</update> |
|
||||||
|
|
||||||
<update id="updateProcessInstanceByWorkerGroupId"> |
|
||||||
update t_ds_process_instance |
|
||||||
set worker_group_id = #{destWorkerGroupId} |
|
||||||
where worker_group_id = #{originWorkerGroupId} |
|
||||||
</update> |
|
||||||
|
|
||||||
<select id="countInstanceStateByUser" resultType="org.apache.dolphinscheduler.dao.entity.ExecuteStatusCount"> |
|
||||||
select t.state, count(0) as count |
|
||||||
from t_ds_process_instance t |
|
||||||
join t_ds_process_definition d on d.id=t.process_definition_id |
|
||||||
join t_ds_project p on p.id=d.project_id |
|
||||||
where 1 = 1 |
|
||||||
and t.is_sub_process = 0 |
|
||||||
<if test="startTime != null and endTime != null"> |
|
||||||
and t.start_time >= #{startTime} and t.start_time <![CDATA[ <= ]]> #{endTime} |
|
||||||
</if> |
|
||||||
<if test="projectIds != null and projectIds.length != 0"> |
|
||||||
and p.id in |
|
||||||
<foreach collection="projectIds" index="index" item="i" open="(" close=")" separator=","> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
group by t.state |
|
||||||
</select> |
|
||||||
<select id="queryByProcessDefineId" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select * |
|
||||||
from t_ds_process_instance |
|
||||||
where process_definition_id=#{processDefinitionId} |
|
||||||
order by start_time desc limit #{size} |
|
||||||
</select> |
|
||||||
<select id="queryLastSchedulerProcess" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select * |
|
||||||
from t_ds_process_instance |
|
||||||
where process_definition_id=#{processDefinitionId} |
|
||||||
<if test="startTime!=null and endTime != null "> |
|
||||||
and schedule_time between #{startTime} and #{endTime} |
|
||||||
</if> |
|
||||||
order by end_time desc limit 1 |
|
||||||
</select> |
|
||||||
<select id="queryLastRunningProcess" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select * |
|
||||||
from t_ds_process_instance |
|
||||||
where 1=1 |
|
||||||
<if test="states !=null and states.length != 0"> |
|
||||||
and state in |
|
||||||
<foreach collection="states" item="i" index="index" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
<if test="startTime!=null and endTime != null "> |
|
||||||
and process_definition_id=#{processDefinitionId} |
|
||||||
and (schedule_time between #{startTime} and #{endTime} or start_time between #{startTime} and #{endTime}) |
|
||||||
</if> |
|
||||||
order by start_time desc limit 1 |
|
||||||
</select> |
|
||||||
<select id="queryLastManualProcess" resultType="org.apache.dolphinscheduler.dao.entity.ProcessInstance"> |
|
||||||
select * |
|
||||||
from t_ds_process_instance |
|
||||||
where process_definition_id=#{processDefinitionId} |
|
||||||
and schedule_time is null |
|
||||||
<if test="startTime!=null and endTime != null "> |
|
||||||
and start_time between #{startTime} and #{endTime} |
|
||||||
</if> |
|
||||||
order by end_time desc limit 1 |
|
||||||
</select> |
|
||||||
|
|
||||||
|
|
||||||
</mapper> |
|
@ -1,68 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ProjectMapper"> |
|
||||||
<select id="queryDetailById" resultType="org.apache.dolphinscheduler.dao.entity.Project"> |
|
||||||
select p.*,u.user_name as user_name |
|
||||||
from t_ds_project p |
|
||||||
join t_ds_user u on p.user_id = u.id |
|
||||||
where p.id = #{projectId} |
|
||||||
</select> |
|
||||||
<select id="queryByName" resultType="org.apache.dolphinscheduler.dao.entity.Project"> |
|
||||||
select p.*,u.user_name as user_name |
|
||||||
from t_ds_project p |
|
||||||
join t_ds_user u on p.user_id = u.id |
|
||||||
where p.name = #{projectName} |
|
||||||
limit 1 |
|
||||||
</select> |
|
||||||
<select id="queryProjectListPaging" resultType="org.apache.dolphinscheduler.dao.entity.Project"> |
|
||||||
select p.*,u.user_name as user_name, |
|
||||||
(SELECT COUNT(*) FROM t_ds_process_definition AS def WHERE def.project_id = p.id) AS def_count, |
|
||||||
(SELECT COUNT(*) FROM t_ds_process_definition def, t_ds_process_instance inst WHERE def.id = inst.process_definition_id AND def.project_id = p.id AND inst.state=1 ) as inst_running_count |
|
||||||
from t_ds_project p |
|
||||||
join t_ds_user u on u.id=p.user_id |
|
||||||
where 1=1 |
|
||||||
<if test="userId != 0"> |
|
||||||
and p.id in |
|
||||||
(select project_id from t_ds_relation_project_user where user_id=#{userId} |
|
||||||
union select id as project_id from t_ds_project where user_id=#{userId} |
|
||||||
) |
|
||||||
</if> |
|
||||||
<if test="searchName!=null and searchName != ''"> |
|
||||||
and p.name like concat('%', #{searchName}, '%') |
|
||||||
</if> |
|
||||||
order by p.create_time desc |
|
||||||
</select> |
|
||||||
<select id="queryAuthedProjectListByUserId" resultType="org.apache.dolphinscheduler.dao.entity.Project"> |
|
||||||
select p.* |
|
||||||
from t_ds_project p,t_ds_relation_project_user rel |
|
||||||
where p.id = rel.project_id and rel.user_id= #{userId} |
|
||||||
</select> |
|
||||||
<select id="queryProjectExceptUserId" resultType="org.apache.dolphinscheduler.dao.entity.Project"> |
|
||||||
select * |
|
||||||
from t_ds_project |
|
||||||
where user_id <![CDATA[ <> ]]> #{userId} |
|
||||||
</select> |
|
||||||
<select id="queryProjectCreatedByUser" resultType="org.apache.dolphinscheduler.dao.entity.Project"> |
|
||||||
select * |
|
||||||
from t_ds_project |
|
||||||
where user_id = #{userId} |
|
||||||
</select> |
|
||||||
|
|
||||||
</mapper> |
|
@ -1,36 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ProjectUserMapper"> |
|
||||||
<delete id="deleteProjectRelation"> |
|
||||||
delete from t_ds_relation_project_user |
|
||||||
where 1=1 |
|
||||||
and user_id = #{userId} |
|
||||||
<if test="projectId != 0 "> |
|
||||||
and project_id = #{projectId} |
|
||||||
</if> |
|
||||||
</delete> |
|
||||||
<select id="queryProjectRelation" resultType="org.apache.dolphinscheduler.dao.entity.ProjectUser"> |
|
||||||
select * |
|
||||||
from t_ds_relation_project_user |
|
||||||
where project_id = #{projectId} |
|
||||||
and user_id = #{userId} |
|
||||||
limit 1 |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,42 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.QueueMapper"> |
|
||||||
<select id="queryQueuePaging" resultType="org.apache.dolphinscheduler.dao.entity.Queue"> |
|
||||||
select * |
|
||||||
from t_ds_queue |
|
||||||
where 1= 1 |
|
||||||
<if test="searchVal != null and searchVal != ''"> |
|
||||||
and queue_name like concat('%', #{searchVal}, '%') |
|
||||||
</if> |
|
||||||
order by update_time desc |
|
||||||
</select> |
|
||||||
<select id="queryAllQueueList" resultType="org.apache.dolphinscheduler.dao.entity.Queue"> |
|
||||||
select * |
|
||||||
from t_ds_queue |
|
||||||
where 1=1 |
|
||||||
<if test="queue != null and queue != ''"> |
|
||||||
and queue = #{queue} |
|
||||||
</if> |
|
||||||
<if test="queueName != null and queueName != ''"> |
|
||||||
and queue_name =#{queueName} |
|
||||||
</if> |
|
||||||
</select> |
|
||||||
|
|
||||||
</mapper> |
|
@ -1,74 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ResourceMapper"> |
|
||||||
<select id="queryResourceList" resultType="org.apache.dolphinscheduler.dao.entity.Resource"> |
|
||||||
select * |
|
||||||
from t_ds_resources |
|
||||||
where 1= 1 |
|
||||||
<if test="alias != null and alias != ''"> |
|
||||||
and alias = #{alias} |
|
||||||
</if> |
|
||||||
<if test="type != -1"> |
|
||||||
and type = #{type} |
|
||||||
</if> |
|
||||||
<if test="userId != 0"> |
|
||||||
and user_id = #{userId} |
|
||||||
</if> |
|
||||||
</select> |
|
||||||
<select id="queryResourceListAuthored" resultType="org.apache.dolphinscheduler.dao.entity.Resource"> |
|
||||||
select * |
|
||||||
from t_ds_resources |
|
||||||
where 1 = 1 |
|
||||||
<if test="type != -1"> |
|
||||||
and type=#{type} |
|
||||||
</if> |
|
||||||
and id in (select resources_id from t_ds_relation_resources_user where user_id=#{userId} |
|
||||||
union select id as resources_id from t_ds_resources where user_id=#{userId}) |
|
||||||
</select> |
|
||||||
<select id="queryResourcePaging" resultType="org.apache.dolphinscheduler.dao.entity.Resource"> |
|
||||||
select * |
|
||||||
from t_ds_resources |
|
||||||
where type=#{type} |
|
||||||
<if test="userId != 0"> |
|
||||||
and id in (select resources_id from t_ds_relation_resources_user where user_id=#{userId} |
|
||||||
union select id as resources_id from t_ds_resources where user_id=#{userId}) |
|
||||||
</if> |
|
||||||
<if test="searchVal != null and searchVal != ''"> |
|
||||||
and alias like concat('%', #{searchVal}, '%') |
|
||||||
</if> |
|
||||||
order by update_time desc |
|
||||||
</select> |
|
||||||
<select id="queryAuthorizedResourceList" resultType="org.apache.dolphinscheduler.dao.entity.Resource"> |
|
||||||
select r.* |
|
||||||
from t_ds_resources r,t_ds_relation_resources_user rel |
|
||||||
where r.id = rel.resources_id AND rel.user_id = #{userId} |
|
||||||
</select> |
|
||||||
<select id="queryResourceExceptUserId" resultType="org.apache.dolphinscheduler.dao.entity.Resource"> |
|
||||||
select * |
|
||||||
from t_ds_resources |
|
||||||
where user_id <![CDATA[ <> ]]> #{userId} |
|
||||||
</select> |
|
||||||
<select id="queryTenantCodeByResourceName" resultType="java.lang.String"> |
|
||||||
select tenant_code |
|
||||||
from t_ds_tenant t, t_ds_user u, t_ds_resources res |
|
||||||
where t.id = u.tenant_id and u.id = res.user_id and res.type=0 |
|
||||||
and res.alias= #{resName} |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,32 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ResourceUserMapper"> |
|
||||||
<delete id="deleteResourceUser"> |
|
||||||
delete |
|
||||||
from t_ds_relation_resources_user |
|
||||||
where 1 = 1 |
|
||||||
<if test="userId != 0"> |
|
||||||
and user_id = #{userId} |
|
||||||
</if> |
|
||||||
<if test="resourceId != 0"> |
|
||||||
and resources_id = #{resourceId} |
|
||||||
</if> |
|
||||||
</delete> |
|
||||||
</mapper> |
|
@ -1,58 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ScheduleMapper"> |
|
||||||
<select id="queryByProcessDefineIdPaging" resultType="org.apache.dolphinscheduler.dao.entity.Schedule"> |
|
||||||
select p_f.name as process_definition_name, p.name as project_name,u.user_name,s.* |
|
||||||
from t_ds_schedules s |
|
||||||
join t_ds_process_definition p_f on s.process_definition_id = p_f.id |
|
||||||
join t_ds_project as p on p_f.project_id = p.id |
|
||||||
join t_ds_user as u on s.user_id = u.id |
|
||||||
where 1=1 |
|
||||||
<if test="processDefinitionId!= 0"> |
|
||||||
and s.process_definition_id = #{processDefinitionId} |
|
||||||
</if> |
|
||||||
order by s.update_time desc |
|
||||||
</select> |
|
||||||
<select id="querySchedulerListByProjectName" resultType="org.apache.dolphinscheduler.dao.entity.Schedule"> |
|
||||||
select p_f.name as process_definition_name, p_f.description as definition_description, p.name as project_name,u.user_name,s.* |
|
||||||
from t_ds_schedules s |
|
||||||
join t_ds_process_definition p_f on s.process_definition_id = p_f.id |
|
||||||
join t_ds_project as p on p_f.project_id = p.id |
|
||||||
join t_ds_user as u on s.user_id = u.id |
|
||||||
where p.name = #{projectName} |
|
||||||
</select> |
|
||||||
<select id="selectAllByProcessDefineArray" resultType="org.apache.dolphinscheduler.dao.entity.Schedule"> |
|
||||||
select * |
|
||||||
from t_ds_schedules |
|
||||||
where 1= 1 |
|
||||||
<if test="processDefineIds != null and processDefineIds.length != 0 "> |
|
||||||
and process_definition_id in |
|
||||||
<foreach collection="processDefineIds" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
and release_state = 1 |
|
||||||
</select> |
|
||||||
<select id="queryByProcessDefinitionId" resultType="org.apache.dolphinscheduler.dao.entity.Schedule"> |
|
||||||
select * |
|
||||||
from t_ds_schedules |
|
||||||
where process_definition_id =#{processDefinitionId} |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,32 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.SessionMapper"> |
|
||||||
<select id="queryByUserId" resultType="org.apache.dolphinscheduler.dao.entity.Session"> |
|
||||||
select * |
|
||||||
from t_ds_session |
|
||||||
where user_id = #{userId} |
|
||||||
</select> |
|
||||||
|
|
||||||
<select id="queryByUserIdAndIp" resultType="org.apache.dolphinscheduler.dao.entity.Session"> |
|
||||||
select * |
|
||||||
from t_ds_session |
|
||||||
where user_id = #{userId} AND ip = #{ip} |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,132 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.TaskInstanceMapper"> |
|
||||||
<update id="setFailoverByHostAndStateArray"> |
|
||||||
update t_ds_task_instance |
|
||||||
set state = #{destStatus} |
|
||||||
where host = #{host} |
|
||||||
and state in |
|
||||||
<foreach collection="states" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</update> |
|
||||||
<select id="queryTaskByProcessIdAndState" resultType="java.lang.Integer"> |
|
||||||
select id |
|
||||||
from t_ds_task_instance |
|
||||||
WHERE process_instance_id = #{processInstanceId} |
|
||||||
and state = #{state} |
|
||||||
and flag = 1 |
|
||||||
</select> |
|
||||||
<select id="findValidTaskListByProcessId" resultType="org.apache.dolphinscheduler.dao.entity.TaskInstance"> |
|
||||||
select * |
|
||||||
from t_ds_task_instance |
|
||||||
WHERE process_instance_id = #{processInstanceId} |
|
||||||
and flag = #{flag} |
|
||||||
order by start_time desc |
|
||||||
</select> |
|
||||||
<select id="queryByHostAndStatus" resultType="org.apache.dolphinscheduler.dao.entity.TaskInstance"> |
|
||||||
select * |
|
||||||
from t_ds_task_instance |
|
||||||
where 1 = 1 |
|
||||||
<if test="host != null and host != ''"> |
|
||||||
and host = #{host} |
|
||||||
</if> |
|
||||||
<if test="states != null and states.length != 0"> |
|
||||||
and state in |
|
||||||
<foreach collection="states" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
</select> |
|
||||||
<select id="countTaskInstanceStateByUser" resultType="org.apache.dolphinscheduler.dao.entity.ExecuteStatusCount"> |
|
||||||
select state, count(0) as count |
|
||||||
from t_ds_task_instance t |
|
||||||
left join t_ds_process_definition d on d.id=t.process_definition_id |
|
||||||
left join t_ds_project p on p.id=d.project_id |
|
||||||
where 1=1 |
|
||||||
<if test="projectIds != null and projectIds.length != 0"> |
|
||||||
and d.project_id in |
|
||||||
<foreach collection="projectIds" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
<if test="startTime != null and endTime != null"> |
|
||||||
and t.start_time > #{startTime} and t.start_time <![CDATA[ <= ]]> #{endTime} |
|
||||||
</if> |
|
||||||
group by t.state |
|
||||||
</select> |
|
||||||
<select id="queryByInstanceIdAndName" resultType="org.apache.dolphinscheduler.dao.entity.TaskInstance"> |
|
||||||
select * |
|
||||||
from t_ds_task_instance |
|
||||||
where process_instance_id = #{processInstanceId} |
|
||||||
and name = #{name} |
|
||||||
and flag = 1 |
|
||||||
limit 1 |
|
||||||
</select> |
|
||||||
<select id="countTask" resultType="java.lang.Integer"> |
|
||||||
select count(1) as count |
|
||||||
from t_ds_task_instance task,t_ds_process_definition process |
|
||||||
where task.process_definition_id=process.id |
|
||||||
<if test="projectIds != null and projectIds.length != 0"> |
|
||||||
and process.project_id in |
|
||||||
<foreach collection="projectIds" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
<if test="taskIds != null and taskIds.length != 0"> |
|
||||||
and task.id in |
|
||||||
<foreach collection="taskIds" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
</select> |
|
||||||
<select id="queryTaskInstanceListPaging" resultType="org.apache.dolphinscheduler.dao.entity.TaskInstance"> |
|
||||||
select instance.*,process.name as process_instance_name |
|
||||||
from t_ds_task_instance instance |
|
||||||
join t_ds_process_definition define ON instance.process_definition_id = define.id |
|
||||||
join t_ds_process_instance process on process.id=instance.process_instance_id |
|
||||||
where define.project_id = #{projectId} |
|
||||||
<if test="startTime != null"> |
|
||||||
and instance.start_time > #{startTime} and instance.start_time <![CDATA[ <=]]> #{endTime} |
|
||||||
</if> |
|
||||||
<if test="processInstanceId != 0"> |
|
||||||
and instance.process_instance_id = #{processInstanceId} |
|
||||||
</if> |
|
||||||
<if test="searchVal != null and searchVal != ''"> |
|
||||||
and instance.name like concat('%', #{searchVal}, '%') |
|
||||||
</if> |
|
||||||
<if test="taskName != null and taskName != ''"> |
|
||||||
and instance.name=#{taskName} |
|
||||||
</if> |
|
||||||
<if test="states != null and states.length != 0"> |
|
||||||
and instance.state in |
|
||||||
<foreach collection="states" index="index" item="i" open="(" separator="," close=")"> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
<if test="host != null and host != ''"> |
|
||||||
and instance.host like concat('%', #{host}, '%') |
|
||||||
</if> |
|
||||||
<if test="executorId != 0"> |
|
||||||
and instance.executor_id = #{executorId} |
|
||||||
</if> |
|
||||||
order by instance.start_time desc |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,41 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.TenantMapper"> |
|
||||||
<select id="queryById" resultType="org.apache.dolphinscheduler.dao.entity.Tenant"> |
|
||||||
SELECT t.*,q.queue_name,q.queue |
|
||||||
FROM t_ds_tenant t,t_ds_queue q |
|
||||||
WHERE t.queue_id = q.id |
|
||||||
and t.id = #{tenantId} |
|
||||||
</select> |
|
||||||
<select id="queryByTenantCode" resultType="org.apache.dolphinscheduler.dao.entity.Tenant"> |
|
||||||
select * |
|
||||||
from t_ds_tenant |
|
||||||
where tenant_code = #{tenantCode} |
|
||||||
</select> |
|
||||||
<select id="queryTenantPaging" resultType="org.apache.dolphinscheduler.dao.entity.Tenant"> |
|
||||||
SELECT t.*,q.queue_name |
|
||||||
FROM t_ds_tenant t,t_ds_queue q |
|
||||||
WHERE t.queue_id = q.id |
|
||||||
<if test="searchVal != null and searchVal != ''"> |
|
||||||
and t.tenant_name like concat('%', #{searchVal}, '%') |
|
||||||
</if> |
|
||||||
order by t.update_time desc |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,29 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.UDFUserMapper"> |
|
||||||
<delete id="deleteByUserId"> |
|
||||||
delete from t_ds_relation_udfs_user |
|
||||||
where user_id = #{userId} |
|
||||||
</delete> |
|
||||||
<delete id="deleteByUdfFuncId"> |
|
||||||
delete from t_ds_relation_udfs_user |
|
||||||
where udf_id = #{udfFuncId} |
|
||||||
</delete> |
|
||||||
</mapper> |
|
@ -1,71 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.UdfFuncMapper"> |
|
||||||
<select id="queryUdfByIdStr" resultType="org.apache.dolphinscheduler.dao.entity.UdfFunc"> |
|
||||||
select * |
|
||||||
from t_ds_udfs |
|
||||||
where 1 = 1 |
|
||||||
<if test="ids != null and ids != ''"> |
|
||||||
and id in |
|
||||||
<foreach collection="ids" item="i" open="(" close=")" separator=","> |
|
||||||
#{i} |
|
||||||
</foreach> |
|
||||||
</if> |
|
||||||
<if test="funcNames != null and funcNames != ''"> |
|
||||||
and func_name = #{funcNames} |
|
||||||
</if> |
|
||||||
order by id asc |
|
||||||
</select> |
|
||||||
<select id="queryUdfFuncPaging" resultType="org.apache.dolphinscheduler.dao.entity.UdfFunc"> |
|
||||||
select * |
|
||||||
from t_ds_udfs |
|
||||||
where 1=1 |
|
||||||
<if test="searchVal!= null and searchVal != ''"> |
|
||||||
and func_name like concat('%', #{searchVal}, '%') |
|
||||||
</if> |
|
||||||
<if test="userId != 0"> |
|
||||||
and id in ( |
|
||||||
select udf_id from t_ds_relation_udfs_user where user_id=#{userId} |
|
||||||
union select id as udf_id from t_ds_udfs where user_id=#{userId}) |
|
||||||
</if> |
|
||||||
order by create_time desc |
|
||||||
</select> |
|
||||||
<select id="getUdfFuncByType" resultType="org.apache.dolphinscheduler.dao.entity.UdfFunc"> |
|
||||||
select * |
|
||||||
from t_ds_udfs |
|
||||||
where type=#{type} |
|
||||||
<if test="userId != 0"> |
|
||||||
and id in ( |
|
||||||
select udf_id from t_ds_relation_udfs_user where user_id=#{userId} |
|
||||||
union select id as udf_id from t_ds_udfs where user_id=#{userId}) |
|
||||||
</if> |
|
||||||
</select> |
|
||||||
<select id="queryUdfFuncExceptUserId" resultType="org.apache.dolphinscheduler.dao.entity.UdfFunc"> |
|
||||||
select * |
|
||||||
from t_ds_udfs |
|
||||||
where user_id <![CDATA[ <> ]]> #{userId} |
|
||||||
</select> |
|
||||||
<select id="queryAuthedUdfFunc" resultType="org.apache.dolphinscheduler.dao.entity.UdfFunc"> |
|
||||||
SELECT u.* |
|
||||||
from t_ds_udfs u,t_ds_relation_udfs_user rel |
|
||||||
WHERE u.id = rel.udf_id |
|
||||||
AND rel.user_id = #{userId} |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,31 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.UserAlertGroupMapper"> |
|
||||||
<delete id="deleteByAlertgroupId"> |
|
||||||
delete from t_ds_relation_user_alertgroup |
|
||||||
where alertgroup_id = #{alertgroupId} |
|
||||||
</delete> |
|
||||||
<select id="listUserByAlertgroupId" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
SELECT u.* |
|
||||||
FROM t_ds_relation_user_alertgroup g_u |
|
||||||
JOIN t_ds_user u on g_u.user_id = u.id |
|
||||||
WHERE g_u.alertgroup_id = #{alertgroupId} |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,72 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.UserMapper"> |
|
||||||
<select id="queryAllGeneralUser" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
select * from t_ds_user |
|
||||||
where user_type=1; |
|
||||||
</select> |
|
||||||
<select id="queryByUserNameAccurately" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
select * from t_ds_user |
|
||||||
where user_name=#{userName} |
|
||||||
</select> |
|
||||||
<select id="queryUserByNamePassword" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
select * from t_ds_user |
|
||||||
where user_name=#{userName} and user_password = #{password} |
|
||||||
</select> |
|
||||||
<select id="queryUserPaging" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
select u.id,u.user_name,u.user_password,u.user_type,u.email,u.phone,u.tenant_id,u.create_time, |
|
||||||
u.update_time,t.tenant_name, |
|
||||||
case when u.queue <![CDATA[ <> ]]> '' then u.queue else q.queue_name end as queue, q.queue_name |
|
||||||
from t_ds_user u |
|
||||||
left join t_ds_tenant t on u.tenant_id=t.id |
|
||||||
left join t_ds_queue q on t.queue_id = q.id |
|
||||||
where 1=1 |
|
||||||
<if test="userName!=null and userName != ''" > |
|
||||||
and u.user_name like concat ('%', #{userName}, '%') |
|
||||||
</if> |
|
||||||
order by u.update_time desc |
|
||||||
</select> |
|
||||||
<select id="queryDetailsById" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
select u.*, t.tenant_name, |
|
||||||
case when u.queue <![CDATA[ <> ]]> '' then u.queue else q.queue_name end as queue_name |
|
||||||
from t_ds_user u,t_ds_tenant t,t_ds_queue q |
|
||||||
WHERE u.tenant_id = t.id and t.queue_id = q.id and u.id = #{userId} |
|
||||||
</select> |
|
||||||
<select id="queryUserListByAlertGroupId" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
select u.* |
|
||||||
from t_ds_user u, t_ds_relation_user_alertgroup rel |
|
||||||
where u.id = rel.user_id AND rel.alertgroup_id = #{alertgroupId} |
|
||||||
</select> |
|
||||||
<select id="queryUserListByTenant" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
select * |
|
||||||
from t_ds_user |
|
||||||
where tenant_id = #{tenantId} |
|
||||||
</select> |
|
||||||
<select id="queryTenantCodeByUserId" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
SELECT u.*,t.tenant_code |
|
||||||
FROM t_ds_user u, t_ds_tenant t |
|
||||||
WHERE u.tenant_id = t.id AND u.id = #{userId} |
|
||||||
</select> |
|
||||||
<select id="queryUserByToken" resultType="org.apache.dolphinscheduler.dao.entity.User"> |
|
||||||
select u.* |
|
||||||
from t_ds_user u ,t_ds_access_token t |
|
||||||
where u.id = t.user_id and token=#{token} and t.expire_time > NOW() |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,40 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" ?> |
|
||||||
<!-- |
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
~ contributor license agreements. See the NOTICE file distributed with |
|
||||||
~ this work for additional information regarding copyright ownership. |
|
||||||
~ The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
~ (the "License"); you may not use this file except in compliance with |
|
||||||
~ the License. You may obtain a copy of the License at |
|
||||||
~ |
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
~ |
|
||||||
~ Unless required by applicable law or agreed to in writing, software |
|
||||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
~ See the License for the specific language governing permissions and |
|
||||||
~ limitations under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
||||||
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.WorkerGroupMapper"> |
|
||||||
<select id="queryAllWorkerGroup" resultType="org.apache.dolphinscheduler.dao.entity.WorkerGroup"> |
|
||||||
select * |
|
||||||
from t_ds_worker_group |
|
||||||
order by update_time desc |
|
||||||
</select> |
|
||||||
<select id="queryWorkerGroupByName" resultType="org.apache.dolphinscheduler.dao.entity.WorkerGroup"> |
|
||||||
select * |
|
||||||
from t_ds_worker_group |
|
||||||
where name = #{name} |
|
||||||
</select> |
|
||||||
<select id="queryListPaging" resultType="org.apache.dolphinscheduler.dao.entity.WorkerGroup"> |
|
||||||
select * |
|
||||||
from t_ds_worker_group |
|
||||||
where 1 = 1 |
|
||||||
<if test="searchVal != null and searchVal != ''"> |
|
||||||
and name like concat('%', #{searchVal}, '%') |
|
||||||
</if> |
|
||||||
order by update_time desc |
|
||||||
</select> |
|
||||||
</mapper> |
|
@ -1,42 +0,0 @@ |
|||||||
# |
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
||||||
# contributor license agreements. See the NOTICE file distributed with |
|
||||||
# this work for additional information regarding copyright ownership. |
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
||||||
# (the "License"); you may not use this file except in compliance with |
|
||||||
# the License. You may obtain a copy of the License at |
|
||||||
# |
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
# |
|
||||||
# Unless required by applicable law or agreed to in writing, software |
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
# See the License for the specific language governing permissions and |
|
||||||
# limitations under the License. |
|
||||||
# |
|
||||||
|
|
||||||
#zookeeper cluster |
|
||||||
zookeeper.quorum=127.0.0.1:2181 |
|
||||||
|
|
||||||
#dolphinscheduler root directory |
|
||||||
zookeeper.dolphinscheduler.root=/dolphinscheduler |
|
||||||
|
|
||||||
#zookeeper server dirctory |
|
||||||
zookeeper.dolphinscheduler.dead.servers=/dolphinscheduler/dead-servers |
|
||||||
zookeeper.dolphinscheduler.masters=/dolphinscheduler/masters |
|
||||||
zookeeper.dolphinscheduler.workers=/dolphinscheduler/workers |
|
||||||
|
|
||||||
#zookeeper lock dirctory |
|
||||||
zookeeper.dolphinscheduler.lock.masters=/dolphinscheduler/lock/masters |
|
||||||
zookeeper.dolphinscheduler.lock.workers=/dolphinscheduler/lock/workers |
|
||||||
|
|
||||||
#dolphinscheduler failover directory |
|
||||||
zookeeper.dolphinscheduler.lock.failover.masters=/dolphinscheduler/lock/failover/masters |
|
||||||
zookeeper.dolphinscheduler.lock.failover.workers=/dolphinscheduler/lock/failover/workers |
|
||||||
zookeeper.dolphinscheduler.lock.failover.startup.masters=/dolphinscheduler/lock/failover/startup-masters |
|
||||||
|
|
||||||
#dolphinscheduler failover directory |
|
||||||
zookeeper.session.timeout=300 |
|
||||||
zookeeper.connection.timeout=300 |
|
||||||
zookeeper.retry.sleep=1000 |
|
||||||
zookeeper.retry.maxtime=5 |
|
@ -1,263 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
|
|
||||||
<!-- |
|
||||||
Licensed to the Apache Software Foundation (ASF) under one |
|
||||||
or more contributor license agreements. See the NOTICE file |
|
||||||
distributed with this work for additional information |
|
||||||
regarding copyright ownership. The ASF licenses this file |
|
||||||
to you under the Apache License, Version 2.0 (the |
|
||||||
"License"); you may not use this file except in compliance |
|
||||||
with the License. You may obtain a copy of the License at |
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, |
|
||||||
software distributed under the License is distributed on an |
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|
||||||
KIND, either express or implied. See the License for the |
|
||||||
specific language governing permissions and limitations |
|
||||||
under the License. |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- |
|
||||||
| This is the configuration file for Maven. It can be specified at two levels: |
|
||||||
| |
|
||||||
| 1. User Level. This settings.xml file provides configuration for a single user, |
|
||||||
| and is normally provided in ${user.home}/.m2/settings.xml. |
|
||||||
| |
|
||||||
| NOTE: This location can be overridden with the CLI option: |
|
||||||
| |
|
||||||
| -s /path/to/user/settings.xml |
|
||||||
| |
|
||||||
| 2. Global Level. This settings.xml file provides configuration for all Maven |
|
||||||
| users on a machine (assuming they're all using the same Maven |
|
||||||
| installation). It's normally provided in |
|
||||||
| ${maven.home}/conf/settings.xml. |
|
||||||
| |
|
||||||
| NOTE: This location can be overridden with the CLI option: |
|
||||||
| |
|
||||||
| -gs /path/to/global/settings.xml |
|
||||||
| |
|
||||||
| The sections in this sample file are intended to give you a running start at |
|
||||||
| getting the most out of your Maven installation. Where appropriate, the default |
|
||||||
| values (values used when the setting is not specified) are provided. |
|
||||||
| |
|
||||||
|--> |
|
||||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" |
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
||||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> |
|
||||||
<!-- localRepository |
|
||||||
| The path to the local repository maven will use to store artifacts. |
|
||||||
| |
|
||||||
| Default: ${user.home}/.m2/repository |
|
||||||
<localRepository>/path/to/local/repo</localRepository> |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- interactiveMode |
|
||||||
| This will determine whether maven prompts you when it needs input. If set to false, |
|
||||||
| maven will use a sensible default value, perhaps based on some other setting, for |
|
||||||
| the parameter in question. |
|
||||||
| |
|
||||||
| Default: true |
|
||||||
<interactiveMode>true</interactiveMode> |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- offline |
|
||||||
| Determines whether maven should attempt to connect to the network when executing a build. |
|
||||||
| This will have an effect on artifact downloads, artifact deployment, and others. |
|
||||||
| |
|
||||||
| Default: false |
|
||||||
<offline>false</offline> |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- pluginGroups |
|
||||||
| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e. |
|
||||||
| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers |
|
||||||
| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list. |
|
||||||
|--> |
|
||||||
<pluginGroups> |
|
||||||
<!-- pluginGroup |
|
||||||
| Specifies a further group identifier to use for plugin lookup. |
|
||||||
<pluginGroup>com.your.plugins</pluginGroup> |
|
||||||
--> |
|
||||||
</pluginGroups> |
|
||||||
|
|
||||||
<!-- proxies |
|
||||||
| This is a list of proxies which can be used on this machine to connect to the network. |
|
||||||
| Unless otherwise specified (by system property or command-line switch), the first proxy |
|
||||||
| specification in this list marked as active will be used. |
|
||||||
|--> |
|
||||||
<proxies> |
|
||||||
<!-- proxy |
|
||||||
| Specification for one proxy, to be used in connecting to the network. |
|
||||||
| |
|
||||||
<proxy> |
|
||||||
<id>optional</id> |
|
||||||
<active>true</active> |
|
||||||
<protocol>http</protocol> |
|
||||||
<username>proxyuser</username> |
|
||||||
<password>proxypass</password> |
|
||||||
<host>proxy.host.net</host> |
|
||||||
<port>80</port> |
|
||||||
<nonProxyHosts>local.net|some.host.com</nonProxyHosts> |
|
||||||
</proxy> |
|
||||||
--> |
|
||||||
</proxies> |
|
||||||
|
|
||||||
<!-- servers |
|
||||||
| This is a list of authentication profiles, keyed by the server-id used within the system. |
|
||||||
| Authentication profiles can be used whenever maven must make a connection to a remote server. |
|
||||||
|--> |
|
||||||
<servers> |
|
||||||
<!-- server |
|
||||||
| Specifies the authentication information to use when connecting to a particular server, identified by |
|
||||||
| a unique name within the system (referred to by the 'id' attribute below). |
|
||||||
| |
|
||||||
| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are |
|
||||||
| used together. |
|
||||||
| |
|
||||||
<server> |
|
||||||
<id>deploymentRepo</id> |
|
||||||
<username>repouser</username> |
|
||||||
<password>repopwd</password> |
|
||||||
</server> |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- Another sample, using keys to authenticate. |
|
||||||
<server> |
|
||||||
<id>siteServer</id> |
|
||||||
<privateKey>/path/to/private/key</privateKey> |
|
||||||
<passphrase>optional; leave empty if not used.</passphrase> |
|
||||||
</server> |
|
||||||
--> |
|
||||||
</servers> |
|
||||||
|
|
||||||
<!-- mirrors |
|
||||||
| This is a list of mirrors to be used in downloading artifacts from remote repositories. |
|
||||||
| |
|
||||||
| It works like this: a POM may declare a repository to use in resolving certain artifacts. |
|
||||||
| However, this repository may have problems with heavy traffic at times, so people have mirrored |
|
||||||
| it to several places. |
|
||||||
| |
|
||||||
| That repository definition will have a unique id, so we can create a mirror reference for that |
|
||||||
| repository, to be used as an alternate download site. The mirror site will be the preferred |
|
||||||
| server for that repository. |
|
||||||
|--> |
|
||||||
<mirrors> |
|
||||||
<!-- mirror |
|
||||||
| Specifies a repository mirror site to use instead of a given repository. The repository that |
|
||||||
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used |
|
||||||
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors. |
|
||||||
| |
|
||||||
<mirror> |
|
||||||
<id>mirrorId</id> |
|
||||||
<mirrorOf>repositoryId</mirrorOf> |
|
||||||
<name>Human Readable Name for this Mirror.</name> |
|
||||||
<url>http://my.repository.com/repo/path</url> |
|
||||||
</mirror> |
|
||||||
--> |
|
||||||
<mirror> |
|
||||||
<id>nexus-aliyun</id> |
|
||||||
<mirrorOf>central</mirrorOf> |
|
||||||
<name>Nexus aliyun</name> |
|
||||||
<url>http://maven.aliyun.com/nexus/content/groups/public</url> |
|
||||||
</mirror> |
|
||||||
</mirrors> |
|
||||||
|
|
||||||
<!-- profiles |
|
||||||
| This is a list of profiles which can be activated in a variety of ways, and which can modify |
|
||||||
| the build process. Profiles provided in the settings.xml are intended to provide local machine- |
|
||||||
| specific paths and repository locations which allow the build to work in the local environment. |
|
||||||
| |
|
||||||
| For example, if you have an integration testing plugin - like cactus - that needs to know where |
|
||||||
| your Tomcat instance is installed, you can provide a variable here such that the variable is |
|
||||||
| dereferenced during the build process to configure the cactus plugin. |
|
||||||
| |
|
||||||
| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles |
|
||||||
| section of this document (settings.xml) - will be discussed later. Another way essentially |
|
||||||
| relies on the detection of a system property, either matching a particular value for the property, |
|
||||||
| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a |
|
||||||
| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'. |
|
||||||
| Finally, the list of active profiles can be specified directly from the command line. |
|
||||||
| |
|
||||||
| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact |
|
||||||
| repositories, plugin repositories, and free-form properties to be used as configuration |
|
||||||
| variables for plugins in the POM. |
|
||||||
| |
|
||||||
|--> |
|
||||||
<profiles> |
|
||||||
<!-- profile |
|
||||||
| Specifies a set of introductions to the build process, to be activated using one or more of the |
|
||||||
| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/> |
|
||||||
| or the command line, profiles have to have an ID that is unique. |
|
||||||
| |
|
||||||
| An encouraged best practice for profile identification is to use a consistent naming convention |
|
||||||
| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc. |
|
||||||
| This will make it more intuitive to understand what the set of introduced profiles is attempting |
|
||||||
| to accomplish, particularly when you only have a list of profile id's for debug. |
|
||||||
| |
|
||||||
| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo. |
|
||||||
<profile> |
|
||||||
<id>jdk-1.4</id> |
|
||||||
|
|
||||||
<activation> |
|
||||||
<jdk>1.4</jdk> |
|
||||||
</activation> |
|
||||||
|
|
||||||
<repositories> |
|
||||||
<repository> |
|
||||||
<id>jdk14</id> |
|
||||||
<name>Repository for JDK 1.4 builds</name> |
|
||||||
<url>http://www.myhost.com/maven/jdk14</url> |
|
||||||
<layout>default</layout> |
|
||||||
<snapshotPolicy>always</snapshotPolicy> |
|
||||||
</repository> |
|
||||||
</repositories> |
|
||||||
</profile> |
|
||||||
--> |
|
||||||
|
|
||||||
<!-- |
|
||||||
| Here is another profile, activated by the system property 'target-env' with a value of 'dev', |
|
||||||
| which provides a specific path to the Tomcat instance. To use this, your plugin configuration |
|
||||||
| might hypothetically look like: |
|
||||||
| |
|
||||||
| ... |
|
||||||
| <plugin> |
|
||||||
| <groupId>org.myco.myplugins</groupId> |
|
||||||
| <artifactId>myplugin</artifactId> |
|
||||||
| |
|
||||||
| <configuration> |
|
||||||
| <tomcatLocation>${tomcatPath}</tomcatLocation> |
|
||||||
| </configuration> |
|
||||||
| </plugin> |
|
||||||
| ... |
|
||||||
| |
|
||||||
| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to |
|
||||||
| anything, you could just leave off the <value/> inside the activation-property. |
|
||||||
| |
|
||||||
<profile> |
|
||||||
<id>env-dev</id> |
|
||||||
|
|
||||||
<activation> |
|
||||||
<property> |
|
||||||
<name>target-env</name> |
|
||||||
<value>dev</value> |
|
||||||
</property> |
|
||||||
</activation> |
|
||||||
|
|
||||||
<properties> |
|
||||||
<tomcatPath>/path/to/tomcat/instance</tomcatPath> |
|
||||||
</properties> |
|
||||||
</profile> |
|
||||||
--> |
|
||||||
</profiles> |
|
||||||
|
|
||||||
<!-- activeProfiles |
|
||||||
| List of profiles that are active for all builds. |
|
||||||
| |
|
||||||
<activeProfiles> |
|
||||||
<activeProfile>alwaysActiveProfile</activeProfile> |
|
||||||
<activeProfile>anotherAlwaysActiveProfile</activeProfile> |
|
||||||
</activeProfiles> |
|
||||||
--> |
|
||||||
</settings> |
|
@ -0,0 +1,33 @@ |
|||||||
|
:: Licensed to the Apache Software Foundation (ASF) under one or more |
||||||
|
:: contributor license agreements. See the NOTICE file distributed with |
||||||
|
:: this work for additional information regarding copyright ownership. |
||||||
|
:: The ASF licenses this file to You under the Apache License, Version 2.0 |
||||||
|
:: (the "License"); you may not use this file except in compliance with |
||||||
|
:: the License. You may obtain a copy of the License at |
||||||
|
:: |
||||||
|
:: http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
:: |
||||||
|
:: Unless required by applicable law or agreed to in writing, software |
||||||
|
:: distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
:: See the License for the specific language governing permissions and |
||||||
|
:: limitations under the License. |
||||||
|
:: |
||||||
|
echo "------ dolphinscheduler start - build -------" |
||||||
|
set |
||||||
|
|
||||||
|
echo "Current Directory is %cd%" |
||||||
|
|
||||||
|
:: maven package(Project Directory) |
||||||
|
echo "call mvn clean compile package -Prelease" |
||||||
|
call mvn clean compile package -Prelease -DskipTests=true |
||||||
|
|
||||||
|
:: move dolphinscheduler-bin.tar.gz file to dockerfile directory |
||||||
|
echo "move %cd%\dolphinscheduler-dist\target\apache-dolphinscheduler-incubating-%VERSION%-SNAPSHOT-dolphinscheduler-bin.tar.gz %cd%\dockerfile\" |
||||||
|
move %cd%\dolphinscheduler-dist\target\apache-dolphinscheduler-incubating-%VERSION%-SNAPSHOT-dolphinscheduler-bin.tar.gz %cd%\dockerfile\ |
||||||
|
|
||||||
|
:: docker build |
||||||
|
echo "docker build --build-arg VERSION=%VERSION% -t %DOCKER_REPO%:%VERSION% %cd%\dockerfile\" |
||||||
|
docker build --build-arg VERSION=%VERSION% -t %DOCKER_REPO%:%VERSION% %cd%\dockerfile\ |
||||||
|
|
||||||
|
echo "------ dolphinscheduler end - build -------" |
@ -0,0 +1,22 @@ |
|||||||
|
:: Licensed to the Apache Software Foundation (ASF) under one or more |
||||||
|
:: contributor license agreements. See the NOTICE file distributed with |
||||||
|
:: this work for additional information regarding copyright ownership. |
||||||
|
:: The ASF licenses this file to You under the Apache License, Version 2.0 |
||||||
|
:: (the "License"); you may not use this file except in compliance with |
||||||
|
:: the License. You may obtain a copy of the License at |
||||||
|
:: |
||||||
|
:: http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
:: |
||||||
|
:: Unless required by applicable law or agreed to in writing, software |
||||||
|
:: distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
:: See the License for the specific language governing permissions and |
||||||
|
:: limitations under the License. |
||||||
|
:: |
||||||
|
|
||||||
|
echo "------ push start -------" |
||||||
|
set |
||||||
|
|
||||||
|
docker push %DOCKER_REPO%:%VERSION% |
||||||
|
|
||||||
|
echo "------ push end -------" |
@ -0,0 +1,100 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# |
||||||
|
# Licensed to the Apache Software Foundation (ASF) under one or more |
||||||
|
# contributor license agreements. See the NOTICE file distributed with |
||||||
|
# this work for additional information regarding copyright ownership. |
||||||
|
# The ASF licenses this file to You under the Apache License, Version 2.0 |
||||||
|
# (the "License"); you may not use this file except in compliance with |
||||||
|
# the License. You may obtain a copy of the License at |
||||||
|
# |
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
# |
||||||
|
# Unless required by applicable law or agreed to in writing, software |
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
# See the License for the specific language governing permissions and |
||||||
|
# limitations under the License. |
||||||
|
# |
||||||
|
|
||||||
|
set -e |
||||||
|
|
||||||
|
echo "init env variables" |
||||||
|
|
||||||
|
# Define parameters default value. |
||||||
|
#============================================================================ |
||||||
|
# Database Source |
||||||
|
#============================================================================ |
||||||
|
export POSTGRESQL_HOST=${POSTGRESQL_HOST:-"127.0.0.1"} |
||||||
|
export POSTGRESQL_PORT=${POSTGRESQL_PORT:-"5432"} |
||||||
|
export POSTGRESQL_USERNAME=${POSTGRESQL_USERNAME:-"root"} |
||||||
|
export POSTGRESQL_PASSWORD=${POSTGRESQL_PASSWORD:-"root"} |
||||||
|
|
||||||
|
#============================================================================ |
||||||
|
# System |
||||||
|
#============================================================================ |
||||||
|
export DOLPHINSCHEDULER_ENV_PATH=${DOLPHINSCHEDULER_ENV_PATH:-"/opt/dolphinscheduler/conf/env/dolphinscheduler_env.sh"} |
||||||
|
|
||||||
|
#============================================================================ |
||||||
|
# Zookeeper |
||||||
|
#============================================================================ |
||||||
|
export TASK_QUEUE=${TASK_QUEUE:-"zookeeper"} |
||||||
|
export ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM:-"127.0.0.1:2181"} |
||||||
|
|
||||||
|
#============================================================================ |
||||||
|
# Master Server |
||||||
|
#============================================================================ |
||||||
|
export MASTER_EXEC_THREADS=${MASTER_EXEC_THREADS:-"100"} |
||||||
|
export MASTER_EXEC_TASK_NUM=${MASTER_EXEC_TASK_NUM:-"20"} |
||||||
|
export MASTER_HEARTBEAT_INTERVAL=${MASTER_HEARTBEAT_INTERVAL:-"10"} |
||||||
|
export MASTER_TASK_COMMIT_RETRYTIMES=${MASTER_TASK_COMMIT_RETRYTIMES:-"5"} |
||||||
|
export MASTER_TASK_COMMIT_INTERVAL=${MASTER_TASK_COMMIT_INTERVAL:-"1000"} |
||||||
|
export MASTER_MAX_CPULOAD_AVG=${MASTER_MAX_CPULOAD_AVG:-"100"} |
||||||
|
export MASTER_RESERVED_MEMORY=${MASTER_RESERVED_MEMORY:-"0.1"} |
||||||
|
|
||||||
|
#============================================================================ |
||||||
|
# Worker Server |
||||||
|
#============================================================================ |
||||||
|
export WORKER_EXEC_THREADS=${WORKER_EXEC_THREADS:-"100"} |
||||||
|
export WORKER_HEARTBEAT_INTERVAL=${WORKER_HEARTBEAT_INTERVAL:-"10"} |
||||||
|
export WORKER_FETCH_TASK_NUM=${WORKER_FETCH_TASK_NUM:-"3"} |
||||||
|
export WORKER_MAX_CPULOAD_AVG=${WORKER_MAX_CPULOAD_AVG:-"100"} |
||||||
|
export WORKER_RESERVED_MEMORY=${WORKER_RESERVED_MEMORY:-"0.1"} |
||||||
|
|
||||||
|
#============================================================================ |
||||||
|
# Alert Server |
||||||
|
#============================================================================ |
||||||
|
# XLS FILE |
||||||
|
export XLS_FILE_PATH=${XLS_FILE_PATH:-"/tmp/xls"} |
||||||
|
# mail |
||||||
|
export MAIL_SERVER_HOST=${MAIL_SERVER_HOST:-""} |
||||||
|
export MAIL_SERVER_PORT=${MAIL_SERVER_PORT:-""} |
||||||
|
export MAIL_SENDER=${MAIL_SENDER:-""} |
||||||
|
export MAIL_USER=${MAIL_USER:-""} |
||||||
|
export MAIL_PASSWD=${MAIL_PASSWD:-""} |
||||||
|
export MAIL_SMTP_STARTTLS_ENABLE=${MAIL_SMTP_STARTTLS_ENABLE:-"true"} |
||||||
|
export MAIL_SMTP_SSL_ENABLE=${MAIL_SMTP_SSL_ENABLE:-"false"} |
||||||
|
export MAIL_SMTP_SSL_TRUST=${MAIL_SMTP_SSL_TRUST:-""} |
||||||
|
# wechat |
||||||
|
export ENTERPRISE_WECHAT_ENABLE=${ENTERPRISE_WECHAT_ENABLE:-"false"} |
||||||
|
export ENTERPRISE_WECHAT_CORP_ID=${ENTERPRISE_WECHAT_CORP_ID:-""} |
||||||
|
export ENTERPRISE_WECHAT_SECRET=${ENTERPRISE_WECHAT_SECRET:-""} |
||||||
|
export ENTERPRISE_WECHAT_AGENT_ID=${ENTERPRISE_WECHAT_AGENT_ID:-""} |
||||||
|
export ENTERPRISE_WECHAT_USERS=${ENTERPRISE_WECHAT_USERS:-""} |
||||||
|
|
||||||
|
#============================================================================ |
||||||
|
# Frontend |
||||||
|
#============================================================================ |
||||||
|
export FRONTEND_API_SERVER_HOST=${FRONTEND_API_SERVER_HOST:-"127.0.0.1"} |
||||||
|
export FRONTEND_API_SERVER_PORT=${FRONTEND_API_SERVER_PORT:-"12345"} |
||||||
|
|
||||||
|
echo "generate app config" |
||||||
|
ls ${DOLPHINSCHEDULER_HOME}/conf/ | grep ".tpl" | while read line; do |
||||||
|
eval "cat << EOF |
||||||
|
$(cat ${DOLPHINSCHEDULER_HOME}/conf/${line}) |
||||||
|
EOF |
||||||
|
" > ${DOLPHINSCHEDULER_HOME}/conf/${line%.*} |
||||||
|
done |
||||||
|
|
||||||
|
echo "generate nginx config" |
||||||
|
sed -i "s/FRONTEND_API_SERVER_HOST/${FRONTEND_API_SERVER_HOST}/g" /etc/nginx/conf.d/dolphinscheduler.conf |
||||||
|
sed -i "s/FRONTEND_API_SERVER_PORT/${FRONTEND_API_SERVER_PORT}/g" /etc/nginx/conf.d/dolphinscheduler.conf |
Loading…
Reference in new issue