Browse Source
* [BUG-#5678][Registry]fix registry init node miss (#5686) * [Improvement][UI] Update the update time after the user information is successfully modified (#5684) * improve edit the userinfo success, but the updatetime is not the latest. * Improved shell task execution result log information, adding process.waitFor() and process.exitValue() information to the original log (#5691) Co-authored-by: shenglm <shenglm840722@126.com> * [Feature-#5565][Master Worker-Server] Global Param passed by sense dependencies (#5603) * add globalParams new plan with varPool * add unit test * add python task varPoolParams Co-authored-by: wangxj <wangxj31> * Issue robot translation judgment changed to Chinese (#5694) Co-authored-by: chenxingchun <438044805@qq.com> * the update function should use post instead of get (#5703) * enhance form verify (#5696) * checkState only supports %s not {} (#5711) * [Fix-5701]When deleting a user, the accessToken associated with the user should also be deleted (#5697) * update * fix the codestyle error * fix the compile error * support rollback * [Fix-5699][UI] Fix update user error in user information (#5700) * [Improvement] the automatically generated spi service name in alert-plugin is wrong (#5676) * bug fix the auto generated spi service can't be recongized * include a new method * [Improvement-5622][project management] Modify the title (#5723) * [Fix-5714] When updating the existing alarm instance, the creation time should't be updated (#5715) * add a new init method. * [Fix#5758] There are some problems in the api documentation that need to be improved (#5759) * add the necessary parameters * openapi improve * fix code style error * [FIX-#5721][master-server] Global params parameter missing (#5757) Co-authored-by: wangxj <wangxj31> * [Fix-5738][UI] The cancel button in the pop-up dialog of `batch copy` and `batch move` doesn't work. (#5739) * Update relatedItems.vue * Update relatedItems.vue * [Improvement#5741][Worker] Improve task process status log (#5776) * [Improvement-5773][server] need to support two parameters related to task (#5774) * add some new parameter for task * restore official properties * improve imports * modify a variable's name Co-authored-by: jiang hua <jiang.hua@zhaopin.com.cn> * [FIX-5786][Improvement][Server] When the Worker turns down, the MasterServer cannot handle the Remove event correctly and throws NPE * [Improvement][Worker] Task log may be lost #5775 (#5783) * [Imporvement #5725][CheckStyle] upgrade checkstyle file (#5789) * [Imporvement #5725][CheckStyle] upgrade checkstyle file Upgrade checkstyle.xml to support checkstyle version 8.24+ * change ci checkstyle version * [Fix-5795][Improvement][Server] The starttime field in the HttpTask log is not displayed as expected. (#5796) * improve timestamp format make the startime in the log of httptask to be easier to read. * fix bad code smell and update the note. * [Imporvement #5621][job instance] start-time and end-time (#5621) (#5797) ·the list of workflow instances is sorted by start time and end time ·This closes #5621 * fix (#5803) Co-authored-by: shuangbofu <fusb@tuya.com> * fix: Remove duplicate "registryClient.close" method calls (#5805) Co-authored-by: wen-hemin <wenhemin@apache.com> * [Improvement][SPI] support load single plugin (#5794) change load operation of 'registry.plugin.dir' * [Improvement][Api Module] refactor registry client, remove spring annotation (#5814) * fix: refactor registry client, remove spring annotation * fix UT * fix UT * fix checkstyle * fix UT * fix UT * fix UT * fix: Rename RegistryCenterUtils method name Co-authored-by: wen-hemin <wenhemin@apache.com> * [Fix-5699][UI] Fix update user error in user information introduced by #5700 (#5735) * [Fix-5726] When we used the UI page, we found some problems such as parameter validation, parameter update shows success but actually work (#5727) * enhance the validation in UI * enchance form verifaction * simplify disable condition * fix: Remove unused class (#5833) Co-authored-by: wen-hemin <wenhemin@apache.com> * [fix-5737] [Bug][Datasource] datsource other param check error (#5835) Co-authored-by: wanggang <wanggy01@servyou.com.cn> * [Fix-5719][K8s] Fix Ingress tls: got map expected array On TLS enabled On Kubernetes [Fix-5719][K8s] Fix Ingress tls: got map expected array On TLS enabled On Kubernetes * [Fix-5825][BUG][WEB] the resource tree in the process definition of latest dev branch can't display correctly (#5826) * resoures-shows-error * fix codestyle error * add license header for new js * fix codesmell * [Improvement-5852][server] Support two parameters related to task for the rest of type of tasks. (#5867) * provide two system parameters to support the rest of type of tasks * provide two system parameters to support the rest of type of tasks * improve test conversion * [Improvement][Fix-5769][UI]When we try to delete the existing dag, the console in web browser would shows exception (#5770) * fix bug * cache the this variable * Avoid self name * fix code style compile error * [Fix-5781][UT] Fix test coverage in sonar (#5817) * build(UT): make jacoco running in offline-instrumentation issue: #5781 * build(UT): remove the jacoco agent dependency in microbench issue: #5781 * [Fix-5808][Server] When we try to transfer data using datax between different types of data sources, the worker will exit with ClassCastException (#5809) * bug fix * fix bug * simplify the code format * add a new parameter to make it easier to understand. * [Fix-5830][Improvement][UI] Improve the selection style in dag edit dialog (#5829) * improve the selection style * update another file * remove unnecessary css part. * [Fix-5904][upgrade]fix dev branch upgrade mysql sql script error (#5821) * fix dev branch upgrade mysql sql script error. * Update naming convention. * [Improvement][Api Module] refactor DataSourceParam and DependentParam, remove spring annotation (#5832) * fix: refactor api utils class, remove spring annotation. * fix: Optimization comments Co-authored-by: wen-hemin <wenhemin@apache.com> * correct the wrong annotion from zk queue implemented to java priority blocking queue (#5906) Co-authored-by: ywang46 <ywang46@paypal.com> * Add a Gitter chat badge to README.md (#5883) * Add Gitter badge * Update README.md Co-authored-by: David <dailidong66@gmail.com> * ci: improve maven connection in CI builds (#5924) issue: #5921 * [Improvement][Master]fix typo (#5934) ·fix typo in MasterBaseTaskExecThread * [Fix-5886][server] Enhanced scheduler delete check (#5936) * Add:Name verification remove the first and last spaces. * Update: wrong word: 'WAITTING' ->'WAITING' * Add: Strengthen verification Co-authored-by: Squid <2824638304@qq.com> * [Improvement-5880][api] Optimized data structure of pagination query API results (#5895) * [5880][refactor]Optimized data structure of pagination query API results - refactor PageInfo and delete returnDataListPaging in API - modify the related Controller and Service and the corresponding Test * Merge branch 'dev' of github.com:apache/dolphinscheduler into dev Conflicts: dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java Co-authored-by: 蔡泽华 <sorea1k@163.com> * [IMPROVEMENT]fix mysql comment error (#5959) * [Improvement][Api]fix typo (#5960) * [Imporvement #5621][job instance] start-time and end-time (#5621) ·the list of workflow instances is sorted by start time and end time ·This closes #5621 * [FIX-5975]queryLastRunningProcess sql in ProcessInstanceMapper.xml (#5980) * [NEW FEATURE][FIX-4385] compensation task add the ability to configure parallelism (#5912) * update * web improved * improve the ui * add the ability to configure the parallelism * update variables * enhance the ut and add necessary note * fix code style * fix code style issue * ensure the complation task in parallel mode can run the right numbers of tasks. * [Improvement][dao]When I search for the keyword description, the web UI shows empty (#5952) * [Bug][WorkerServer] SqlTask NullPointerException #5549 * [Improvement][dao]When I search for the keyword Modify User, the web UI shows empty #5428 * [Improvement][dao]When I search for the keyword Modify User, the web UI shows empty #5428 * [Improvement][dao]When I search for the keyword Modify User, the web UI shows empty #5428 * [Improvement][dao]When I search for the keyword Modify User, the web UI shows empty #5428 * [Improvement][dao]When I search for the keyword Modify User, the web UI shows empty #5428 * [Improvement][dao]When I search for the keyword Modify User, the web UI shows empty #5428 * [Improvement][dao]When I search for the keyword description, the web UI shows empty #5428 * fix the readme typing issue (#5998) * Fix unchecked type conversions * Use indentation level reported by checkstyle * Reorganize CI workflows to fasten the wasted time and resources (#6011) * Add standalone server module to make it easier to develop (#6022) * fix ut Co-authored-by: Kirs <acm_master@163.com> Co-authored-by: kyoty <echohlne@gmail.com> Co-authored-by: ji04xiaogang <ji04xiaogang@163.com> Co-authored-by: shenglm <shenglm840722@126.com> Co-authored-by: wangxj3 <857234426@qq.com> Co-authored-by: xingchun-chen <55787491+xingchun-chen@users.noreply.github.com> Co-authored-by: chenxingchun <438044805@qq.com> Co-authored-by: Shiwen Cheng <chengshiwen0103@gmail.com> Co-authored-by: Jianchao Wang <akingchao@qq.com> Co-authored-by: Tanvi Moharir <74228962+tanvimoharir@users.noreply.github.com> Co-authored-by: Hua Jiang <jianghuachinacom@163.com> Co-authored-by: jiang hua <jiang.hua@zhaopin.com.cn> Co-authored-by: Wenjun Ruan <861923274@qq.com> Co-authored-by: Tandoy <56899730+Tandoy@users.noreply.github.com> Co-authored-by: 傅双波 <786183073@qq.com> Co-authored-by: shuangbofu <fusb@tuya.com> Co-authored-by: wen-hemin <39549317+wen-hemin@users.noreply.github.com> Co-authored-by: wen-hemin <wenhemin@apache.com> Co-authored-by: geosmart <geosmart@hotmail.com> Co-authored-by: wanggang <wanggy01@servyou.com.cn> Co-authored-by: AzureCN <colorazure@163.com> Co-authored-by: 深刻 <tsund@qq.com> Co-authored-by: zhuangchong <37063904+zhuangchong@users.noreply.github.com> Co-authored-by: Yao WANG <Yao.MR.CN@gmail.com> Co-authored-by: ywang46 <ywang46@paypal.com> Co-authored-by: The Gitter Badger <badger@gitter.im> Co-authored-by: David <dailidong66@gmail.com> Co-authored-by: Squidyu <1297554122@qq.com> Co-authored-by: Squid <2824638304@qq.com> Co-authored-by: soreak <60459867+soreak@users.noreply.github.com> Co-authored-by: 蔡泽华 <sorea1k@163.com> Co-authored-by: yimaixinchen <yimaixinchen@163.com> Co-authored-by: atai-555 <74188560+atai-555@users.noreply.github.com> Co-authored-by: didiaode18 <563646039@qq.com> Co-authored-by: Roy <yongjuncao1213@gmail.com> Co-authored-by: lyxell <alyxell@kth.se> Co-authored-by: Wenjun Ruan <wenjun@apache.org> Co-authored-by: kezhenxu94 <kezhenxu94@apache.org> Co-authored-by: JinyLeeChina <297062848@qq.com>2.0.7-release
JinyLeeChina
3 years ago
committed by
GitHub
52 changed files with 1500 additions and 396 deletions
@ -0,0 +1 @@ |
|||||||
|
Subproject commit 2fc905b1875f2e6b91c4201a4dc6eaa21b86547e |
@ -0,0 +1,53 @@ |
|||||||
|
# |
||||||
|
# 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. |
||||||
|
# |
||||||
|
|
||||||
|
name: "Sanity Check" |
||||||
|
|
||||||
|
description: | |
||||||
|
Action to perform some very basic lightweight checks, like code styles, license headers, etc., |
||||||
|
and fail fast to avoid wasting resources running heavyweight checks, like unit tests, e2e tests. |
||||||
|
|
||||||
|
inputs: |
||||||
|
token: |
||||||
|
description: 'The GitHub API token' |
||||||
|
required: false |
||||||
|
|
||||||
|
runs: |
||||||
|
using: "composite" |
||||||
|
steps: |
||||||
|
- name: Check License Header |
||||||
|
uses: apache/skywalking-eyes@a63f4afcc287dfb3727ecc45a4afc55a5e69c15f |
||||||
|
|
||||||
|
- uses: ./.github/actions/reviewdog-setup |
||||||
|
with: |
||||||
|
reviewdog_version: v0.10.2 |
||||||
|
|
||||||
|
- shell: bash |
||||||
|
run: ./mvnw -B -q checkstyle:checkstyle-aggregate |
||||||
|
|
||||||
|
- shell: bash |
||||||
|
env: |
||||||
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ inputs.token }} |
||||||
|
run: | |
||||||
|
if [[ -n "${{ inputs.token }}" ]]; then |
||||||
|
reviewdog -f=checkstyle \ |
||||||
|
-reporter="github-pr-check" \ |
||||||
|
-filter-mode="added" \ |
||||||
|
-fail-on-error="true" < target/checkstyle-result.xml |
||||||
|
fi |
@ -0,0 +1,52 @@ |
|||||||
|
<?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. |
||||||
|
--> |
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||||
|
<parent> |
||||||
|
<artifactId>dolphinscheduler</artifactId> |
||||||
|
<groupId>org.apache.dolphinscheduler</groupId> |
||||||
|
<version>1.3.6-SNAPSHOT</version> |
||||||
|
</parent> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
|
||||||
|
<artifactId>dolphinscheduler-standalone-server</artifactId> |
||||||
|
|
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.apache.dolphinscheduler</groupId> |
||||||
|
<artifactId>dolphinscheduler-server</artifactId> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.apache.dolphinscheduler</groupId> |
||||||
|
<artifactId>dolphinscheduler-api</artifactId> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.apache.curator</groupId> |
||||||
|
<artifactId>curator-test</artifactId> |
||||||
|
<version>${curator.test}</version> |
||||||
|
<exclusions> |
||||||
|
<exclusion> |
||||||
|
<groupId>org.javassist</groupId> |
||||||
|
<artifactId>javassist</artifactId> |
||||||
|
</exclusion> |
||||||
|
</exclusions> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
|
||||||
|
</project> |
@ -0,0 +1,82 @@ |
|||||||
|
/* |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package org.apache.dolphinscheduler.server; |
||||||
|
|
||||||
|
import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_DRIVER_CLASS_NAME; |
||||||
|
import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_PASSWORD; |
||||||
|
import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_URL; |
||||||
|
import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_USERNAME; |
||||||
|
|
||||||
|
import org.apache.dolphinscheduler.api.ApiApplicationServer; |
||||||
|
import org.apache.dolphinscheduler.common.utils.ScriptRunner; |
||||||
|
import org.apache.dolphinscheduler.dao.datasource.ConnectionFactory; |
||||||
|
import org.apache.dolphinscheduler.server.master.MasterServer; |
||||||
|
import org.apache.dolphinscheduler.server.worker.WorkerServer; |
||||||
|
|
||||||
|
import org.apache.curator.test.TestingServer; |
||||||
|
|
||||||
|
import java.io.FileReader; |
||||||
|
import java.nio.file.Files; |
||||||
|
import java.nio.file.Path; |
||||||
|
|
||||||
|
import javax.sql.DataSource; |
||||||
|
|
||||||
|
import org.h2.tools.Server; |
||||||
|
import org.slf4j.Logger; |
||||||
|
import org.slf4j.LoggerFactory; |
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
||||||
|
import org.springframework.boot.builder.SpringApplicationBuilder; |
||||||
|
|
||||||
|
@SpringBootApplication |
||||||
|
public class StandaloneServer { |
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(StandaloneServer.class); |
||||||
|
|
||||||
|
public static void main(String[] args) throws Exception { |
||||||
|
System.setProperty("spring.profiles.active", "api"); |
||||||
|
|
||||||
|
final Path temp = Files.createTempDirectory("dolphinscheduler_"); |
||||||
|
LOGGER.info("H2 database directory: {}", temp); |
||||||
|
System.setProperty( |
||||||
|
SPRING_DATASOURCE_DRIVER_CLASS_NAME, |
||||||
|
org.h2.Driver.class.getName() |
||||||
|
); |
||||||
|
System.setProperty( |
||||||
|
SPRING_DATASOURCE_URL, |
||||||
|
String.format("jdbc:h2:tcp://localhost/%s", temp.toAbsolutePath()) |
||||||
|
); |
||||||
|
System.setProperty(SPRING_DATASOURCE_USERNAME, "sa"); |
||||||
|
System.setProperty(SPRING_DATASOURCE_PASSWORD, ""); |
||||||
|
|
||||||
|
Server.createTcpServer("-ifNotExists").start(); |
||||||
|
|
||||||
|
final DataSource ds = ConnectionFactory.getInstance().getDataSource(); |
||||||
|
final ScriptRunner runner = new ScriptRunner(ds.getConnection(), true, true); |
||||||
|
runner.runScript(new FileReader("sql/dolphinscheduler_h2.sql")); |
||||||
|
|
||||||
|
final TestingServer server = new TestingServer(true); |
||||||
|
System.setProperty("registry.servers", server.getConnectString()); |
||||||
|
|
||||||
|
Thread.currentThread().setName("Standalone-Server"); |
||||||
|
|
||||||
|
new SpringApplicationBuilder( |
||||||
|
ApiApplicationServer.class, |
||||||
|
MasterServer.class, |
||||||
|
WorkerServer.class |
||||||
|
).run(args); |
||||||
|
} |
||||||
|
} |
@ -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. |
||||||
|
# |
||||||
|
|
||||||
|
# This file is only to override the production configurations in standalone server. |
||||||
|
|
||||||
|
registry.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-1.3.6-SNAPSHOT/lib/plugin/registry/zookeeper |
||||||
|
registry.plugin.name=zookeeper |
||||||
|
registry.servers=127.0.0.1:2181 |
@ -1,103 +0,0 @@ |
|||||||
#!/bin/sh |
|
||||||
# |
|
||||||
# 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. |
|
||||||
# |
|
||||||
|
|
||||||
workDir=`dirname $0` |
|
||||||
workDir=`cd ${workDir};pwd` |
|
||||||
|
|
||||||
source ${workDir}/conf/config/install_config.conf |
|
||||||
|
|
||||||
# 1.replace file |
|
||||||
echo "1.replace file" |
|
||||||
|
|
||||||
txt="" |
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then |
|
||||||
# Mac OSX |
|
||||||
txt="''" |
|
||||||
fi |
|
||||||
|
|
||||||
datasourceDriverClassname="com.mysql.jdbc.Driver" |
|
||||||
if [ $dbtype == "postgresql" ];then |
|
||||||
datasourceDriverClassname="org.postgresql.Driver" |
|
||||||
fi |
|
||||||
sed -i ${txt} "s@^spring.datasource.driver-class-name=.*@spring.datasource.driver-class-name=${datasourceDriverClassname}@g" conf/datasource.properties |
|
||||||
sed -i ${txt} "s@^spring.datasource.url=.*@spring.datasource.url=jdbc:${dbtype}://${dbhost}/${dbname}?characterEncoding=UTF-8\&allowMultiQueries=true@g" conf/datasource.properties |
|
||||||
sed -i ${txt} "s@^spring.datasource.username=.*@spring.datasource.username=${username}@g" conf/datasource.properties |
|
||||||
sed -i ${txt} "s@^spring.datasource.password=.*@spring.datasource.password=${password}@g" conf/datasource.properties |
|
||||||
|
|
||||||
sed -i ${txt} "s@^#\?zookeeper.quorum=.*@zookeeper.quorum=${zkQuorum}@g" conf/zookeeper.properties |
|
||||||
sed -i ${txt} "s@^#\?zookeeper.dolphinscheduler.root=.*@zookeeper.dolphinscheduler.root=${zkRoot}@g" conf/zookeeper.properties |
|
||||||
|
|
||||||
sed -i ${txt} "s@^data.basedir.path=.*@data.basedir.path=${dataBasedirPath}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^resource.storage.type=.*@resource.storage.type=${resourceStorageType}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^resource.upload.path=.*@resource.upload.path=${resourceUploadPath}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^hadoop.security.authentication.startup.state=.*@hadoop.security.authentication.startup.state=${kerberosStartUp}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^java.security.krb5.conf.path=.*@java.security.krb5.conf.path=${krb5ConfPath}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^login.user.keytab.username=.*@login.user.keytab.username=${keytabUserName}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^login.user.keytab.path=.*@login.user.keytab.path=${keytabPath}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^kerberos.expire.time=.*@kerberos.expire.time=${kerberosExpireTime}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^hdfs.root.user=.*@hdfs.root.user=${hdfsRootUser}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^fs.defaultFS=.*@fs.defaultFS=${defaultFS}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^fs.s3a.endpoint=.*@fs.s3a.endpoint=${s3Endpoint}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^fs.s3a.access.key=.*@fs.s3a.access.key=${s3AccessKey}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^fs.s3a.secret.key=.*@fs.s3a.secret.key=${s3SecretKey}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^resource.manager.httpaddress.port=.*@resource.manager.httpaddress.port=${resourceManagerHttpAddressPort}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^yarn.resourcemanager.ha.rm.ids=.*@yarn.resourcemanager.ha.rm.ids=${yarnHaIps}@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^yarn.application.status.address=.*@yarn.application.status.address=http://${singleYarnIp}:%s/ws/v1/cluster/apps/%s@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^yarn.job.history.status.address=.*@yarn.job.history.status.address=http://${singleYarnIp}:19888/ws/v1/history/mapreduce/jobs/%s@g" conf/common.properties |
|
||||||
sed -i ${txt} "s@^sudo.enable=.*@sudo.enable=${sudoEnable}@g" conf/common.properties |
|
||||||
|
|
||||||
# the following configurations may be commented, so ddd #\? to ensure successful sed |
|
||||||
sed -i ${txt} "s@^#\?worker.tenant.auto.create=.*@worker.tenant.auto.create=${workerTenantAutoCreate}@g" conf/worker.properties |
|
||||||
sed -i ${txt} "s@^#\?alert.listen.host=.*@alert.listen.host=${alertServer}@g" conf/worker.properties |
|
||||||
sed -i ${txt} "s@^#\?alert.plugin.dir=.*@alert.plugin.dir=${alertPluginDir}@g" conf/alert.properties |
|
||||||
sed -i ${txt} "s@^#\?server.port=.*@server.port=${apiServerPort}@g" conf/application-api.properties |
|
||||||
|
|
||||||
# 2.create directory |
|
||||||
echo "2.create directory" |
|
||||||
|
|
||||||
if [ ! -d $installPath ];then |
|
||||||
sudo mkdir -p $installPath |
|
||||||
sudo chown -R $deployUser:$deployUser $installPath |
|
||||||
fi |
|
||||||
|
|
||||||
# 3.scp resources |
|
||||||
echo "3.scp resources" |
|
||||||
sh ${workDir}/script/scp-hosts.sh |
|
||||||
if [ $? -eq 0 ] |
|
||||||
then |
|
||||||
echo 'scp copy completed' |
|
||||||
else |
|
||||||
echo 'scp copy failed to exit' |
|
||||||
exit 1 |
|
||||||
fi |
|
||||||
|
|
||||||
|
|
||||||
# 4.stop server |
|
||||||
echo "4.stop server" |
|
||||||
sh ${workDir}/script/stop-all.sh |
|
||||||
|
|
||||||
|
|
||||||
# 5.delete zk node |
|
||||||
echo "5.delete zk node" |
|
||||||
|
|
||||||
sh ${workDir}/script/remove-zk-node.sh $zkRoot |
|
||||||
|
|
||||||
|
|
||||||
# 6.startup |
|
||||||
echo "6.startup" |
|
||||||
sh ${workDir}/script/start-all.sh |
|
@ -0,0 +1,943 @@ |
|||||||
|
/* |
||||||
|
* 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 FOREIGN_KEY_CHECKS=0; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_JOB_DETAILS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_JOB_DETAILS; |
||||||
|
CREATE TABLE QRTZ_JOB_DETAILS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
JOB_NAME varchar(200) NOT NULL, |
||||||
|
JOB_GROUP varchar(200) NOT NULL, |
||||||
|
DESCRIPTION varchar(250) DEFAULT NULL, |
||||||
|
JOB_CLASS_NAME varchar(250) NOT NULL, |
||||||
|
IS_DURABLE varchar(1) NOT NULL, |
||||||
|
IS_NONCONCURRENT varchar(1) NOT NULL, |
||||||
|
IS_UPDATE_DATA varchar(1) NOT NULL, |
||||||
|
REQUESTS_RECOVERY varchar(1) NOT NULL, |
||||||
|
JOB_DATA blob, |
||||||
|
PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_TRIGGERS; |
||||||
|
CREATE TABLE QRTZ_TRIGGERS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
TRIGGER_NAME varchar(200) NOT NULL, |
||||||
|
TRIGGER_GROUP varchar(200) NOT NULL, |
||||||
|
JOB_NAME varchar(200) NOT NULL, |
||||||
|
JOB_GROUP varchar(200) NOT NULL, |
||||||
|
DESCRIPTION varchar(250) DEFAULT NULL, |
||||||
|
NEXT_FIRE_TIME bigint(13) DEFAULT NULL, |
||||||
|
PREV_FIRE_TIME bigint(13) DEFAULT NULL, |
||||||
|
PRIORITY int(11) DEFAULT NULL, |
||||||
|
TRIGGER_STATE varchar(16) NOT NULL, |
||||||
|
TRIGGER_TYPE varchar(8) NOT NULL, |
||||||
|
START_TIME bigint(13) NOT NULL, |
||||||
|
END_TIME bigint(13) DEFAULT NULL, |
||||||
|
CALENDAR_NAME varchar(200) DEFAULT NULL, |
||||||
|
MISFIRE_INSTR smallint(2) DEFAULT NULL, |
||||||
|
JOB_DATA blob, |
||||||
|
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), |
||||||
|
CONSTRAINT QRTZ_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, JOB_NAME, JOB_GROUP) REFERENCES QRTZ_JOB_DETAILS (SCHED_NAME, JOB_NAME, JOB_GROUP) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_BLOB_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS; |
||||||
|
CREATE TABLE QRTZ_BLOB_TRIGGERS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
TRIGGER_NAME varchar(200) NOT NULL, |
||||||
|
TRIGGER_GROUP varchar(200) NOT NULL, |
||||||
|
BLOB_DATA blob, |
||||||
|
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), |
||||||
|
FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_BLOB_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_CALENDARS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_CALENDARS; |
||||||
|
CREATE TABLE QRTZ_CALENDARS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
CALENDAR_NAME varchar(200) NOT NULL, |
||||||
|
CALENDAR blob NOT NULL, |
||||||
|
PRIMARY KEY (SCHED_NAME,CALENDAR_NAME) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_CALENDARS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_CRON_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS; |
||||||
|
CREATE TABLE QRTZ_CRON_TRIGGERS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
TRIGGER_NAME varchar(200) NOT NULL, |
||||||
|
TRIGGER_GROUP varchar(200) NOT NULL, |
||||||
|
CRON_EXPRESSION varchar(120) NOT NULL, |
||||||
|
TIME_ZONE_ID varchar(80) DEFAULT NULL, |
||||||
|
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), |
||||||
|
CONSTRAINT QRTZ_CRON_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_CRON_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_FIRED_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS; |
||||||
|
CREATE TABLE QRTZ_FIRED_TRIGGERS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
ENTRY_ID varchar(200) NOT NULL, |
||||||
|
TRIGGER_NAME varchar(200) NOT NULL, |
||||||
|
TRIGGER_GROUP varchar(200) NOT NULL, |
||||||
|
INSTANCE_NAME varchar(200) NOT NULL, |
||||||
|
FIRED_TIME bigint(13) NOT NULL, |
||||||
|
SCHED_TIME bigint(13) NOT NULL, |
||||||
|
PRIORITY int(11) NOT NULL, |
||||||
|
STATE varchar(16) NOT NULL, |
||||||
|
JOB_NAME varchar(200) DEFAULT NULL, |
||||||
|
JOB_GROUP varchar(200) DEFAULT NULL, |
||||||
|
IS_NONCONCURRENT varchar(1) DEFAULT NULL, |
||||||
|
REQUESTS_RECOVERY varchar(1) DEFAULT NULL, |
||||||
|
PRIMARY KEY (SCHED_NAME,ENTRY_ID) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_FIRED_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_JOB_DETAILS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_LOCKS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_LOCKS; |
||||||
|
CREATE TABLE QRTZ_LOCKS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
LOCK_NAME varchar(40) NOT NULL, |
||||||
|
PRIMARY KEY (SCHED_NAME,LOCK_NAME) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_LOCKS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS; |
||||||
|
CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
TRIGGER_GROUP varchar(200) NOT NULL, |
||||||
|
PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_PAUSED_TRIGGER_GRPS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_SCHEDULER_STATE |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE; |
||||||
|
CREATE TABLE QRTZ_SCHEDULER_STATE ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
INSTANCE_NAME varchar(200) NOT NULL, |
||||||
|
LAST_CHECKIN_TIME bigint(13) NOT NULL, |
||||||
|
CHECKIN_INTERVAL bigint(13) NOT NULL, |
||||||
|
PRIMARY KEY (SCHED_NAME,INSTANCE_NAME) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_SCHEDULER_STATE |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_SIMPLE_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS; |
||||||
|
CREATE TABLE QRTZ_SIMPLE_TRIGGERS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
TRIGGER_NAME varchar(200) NOT NULL, |
||||||
|
TRIGGER_GROUP varchar(200) NOT NULL, |
||||||
|
REPEAT_COUNT bigint(7) NOT NULL, |
||||||
|
REPEAT_INTERVAL bigint(12) NOT NULL, |
||||||
|
TIMES_TRIGGERED bigint(10) NOT NULL, |
||||||
|
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), |
||||||
|
CONSTRAINT QRTZ_SIMPLE_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_SIMPLE_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for QRTZ_SIMPROP_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS; |
||||||
|
CREATE TABLE QRTZ_SIMPROP_TRIGGERS ( |
||||||
|
SCHED_NAME varchar(120) NOT NULL, |
||||||
|
TRIGGER_NAME varchar(200) NOT NULL, |
||||||
|
TRIGGER_GROUP varchar(200) NOT NULL, |
||||||
|
STR_PROP_1 varchar(512) DEFAULT NULL, |
||||||
|
STR_PROP_2 varchar(512) DEFAULT NULL, |
||||||
|
STR_PROP_3 varchar(512) DEFAULT NULL, |
||||||
|
INT_PROP_1 int(11) DEFAULT NULL, |
||||||
|
INT_PROP_2 int(11) DEFAULT NULL, |
||||||
|
LONG_PROP_1 bigint(20) DEFAULT NULL, |
||||||
|
LONG_PROP_2 bigint(20) DEFAULT NULL, |
||||||
|
DEC_PROP_1 decimal(13,4) DEFAULT NULL, |
||||||
|
DEC_PROP_2 decimal(13,4) DEFAULT NULL, |
||||||
|
BOOL_PROP_1 varchar(1) DEFAULT NULL, |
||||||
|
BOOL_PROP_2 varchar(1) DEFAULT NULL, |
||||||
|
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), |
||||||
|
CONSTRAINT QRTZ_SIMPROP_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_SIMPROP_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of QRTZ_TRIGGERS |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_access_token |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_access_token; |
||||||
|
CREATE TABLE t_ds_access_token ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
user_id int(11) DEFAULT NULL, |
||||||
|
token varchar(64) DEFAULT NULL, |
||||||
|
expire_time datetime DEFAULT NULL, |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_access_token |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_alert |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_alert; |
||||||
|
CREATE TABLE t_ds_alert ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
title varchar(64) DEFAULT NULL, |
||||||
|
content text, |
||||||
|
alert_status tinyint(4) DEFAULT '0', |
||||||
|
log text, |
||||||
|
alertgroup_id int(11) DEFAULT NULL, |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_alert |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_alertgroup |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_alertgroup; |
||||||
|
CREATE TABLE t_ds_alertgroup( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
alert_instance_ids varchar (255) DEFAULT NULL, |
||||||
|
create_user_id int(11) DEFAULT NULL, |
||||||
|
group_name varchar(255) DEFAULT NULL, |
||||||
|
description varchar(255) DEFAULT NULL, |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id), |
||||||
|
UNIQUE KEY t_ds_alertgroup_name_un (group_name) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_alertgroup |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_command |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_command; |
||||||
|
CREATE TABLE t_ds_command ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
command_type tinyint(4) DEFAULT NULL, |
||||||
|
process_definition_id int(11) DEFAULT NULL, |
||||||
|
command_param text, |
||||||
|
task_depend_type tinyint(4) DEFAULT NULL, |
||||||
|
failure_strategy tinyint(4) DEFAULT '0', |
||||||
|
warning_type tinyint(4) DEFAULT '0', |
||||||
|
warning_group_id int(11) DEFAULT NULL, |
||||||
|
schedule_time datetime DEFAULT NULL, |
||||||
|
start_time datetime DEFAULT NULL, |
||||||
|
executor_id int(11) DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
process_instance_priority int(11) DEFAULT NULL, |
||||||
|
worker_group varchar(64) , |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_command |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_datasource |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_datasource; |
||||||
|
CREATE TABLE t_ds_datasource ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
name varchar(64) NOT NULL, |
||||||
|
note varchar(255) DEFAULT NULL, |
||||||
|
type tinyint(4) NOT NULL, |
||||||
|
user_id int(11) NOT NULL, |
||||||
|
connection_params text NOT NULL, |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id), |
||||||
|
UNIQUE KEY t_ds_datasource_name_un (name, type) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_datasource |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_error_command |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_error_command; |
||||||
|
CREATE TABLE t_ds_error_command ( |
||||||
|
id int(11) NOT NULL, |
||||||
|
command_type tinyint(4) DEFAULT NULL, |
||||||
|
executor_id int(11) DEFAULT NULL, |
||||||
|
process_definition_id int(11) DEFAULT NULL, |
||||||
|
command_param text, |
||||||
|
task_depend_type tinyint(4) DEFAULT NULL, |
||||||
|
failure_strategy tinyint(4) DEFAULT '0', |
||||||
|
warning_type tinyint(4) DEFAULT '0', |
||||||
|
warning_group_id int(11) DEFAULT NULL, |
||||||
|
schedule_time datetime DEFAULT NULL, |
||||||
|
start_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
process_instance_priority int(11) DEFAULT NULL, |
||||||
|
worker_group varchar(64) , |
||||||
|
message text, |
||||||
|
PRIMARY KEY (id) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_error_command |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_process_definition |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_process_definition; |
||||||
|
CREATE TABLE t_ds_process_definition ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
code bigint(20) NOT NULL, |
||||||
|
name varchar(255) DEFAULT NULL, |
||||||
|
version int(11) DEFAULT NULL, |
||||||
|
description text, |
||||||
|
project_code bigint(20) NOT NULL, |
||||||
|
release_state tinyint(4) DEFAULT NULL, |
||||||
|
user_id int(11) DEFAULT NULL, |
||||||
|
global_params text, |
||||||
|
flag tinyint(4) DEFAULT NULL, |
||||||
|
locations text, |
||||||
|
connects text, |
||||||
|
warning_group_id int(11) DEFAULT NULL, |
||||||
|
timeout int(11) DEFAULT '0', |
||||||
|
tenant_id int(11) NOT NULL DEFAULT '-1', |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id), |
||||||
|
UNIQUE KEY process_unique (name,project_code) USING BTREE, |
||||||
|
UNIQUE KEY code_unique (code) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_process_definition |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_process_definition_log |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_process_definition_log; |
||||||
|
CREATE TABLE t_ds_process_definition_log ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
code bigint(20) NOT NULL, |
||||||
|
name varchar(200) DEFAULT NULL, |
||||||
|
version int(11) DEFAULT NULL, |
||||||
|
description text, |
||||||
|
project_code bigint(20) NOT NULL, |
||||||
|
release_state tinyint(4) DEFAULT NULL, |
||||||
|
user_id int(11) DEFAULT NULL, |
||||||
|
global_params text, |
||||||
|
flag tinyint(4) DEFAULT NULL, |
||||||
|
locations text, |
||||||
|
connects text, |
||||||
|
warning_group_id int(11) DEFAULT NULL, |
||||||
|
timeout int(11) DEFAULT '0', |
||||||
|
tenant_id int(11) NOT NULL DEFAULT '-1', |
||||||
|
operator int(11) DEFAULT NULL, |
||||||
|
operate_time datetime DEFAULT NULL, |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_task_definition |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_task_definition; |
||||||
|
CREATE TABLE t_ds_task_definition ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
code bigint(20) NOT NULL, |
||||||
|
name varchar(200) DEFAULT NULL, |
||||||
|
version int(11) DEFAULT NULL, |
||||||
|
description text, |
||||||
|
project_code bigint(20) NOT NULL, |
||||||
|
user_id int(11) DEFAULT NULL, |
||||||
|
task_type varchar(50) NOT NULL, |
||||||
|
task_params longtext, |
||||||
|
flag tinyint(2) DEFAULT NULL, |
||||||
|
task_priority tinyint(4) DEFAULT NULL, |
||||||
|
worker_group varchar(200) DEFAULT NULL, |
||||||
|
fail_retry_times int(11) DEFAULT NULL, |
||||||
|
fail_retry_interval int(11) DEFAULT NULL, |
||||||
|
timeout_flag tinyint(2) DEFAULT '0', |
||||||
|
timeout_notify_strategy tinyint(4) DEFAULT NULL, |
||||||
|
timeout int(11) DEFAULT '0', |
||||||
|
delay_time int(11) DEFAULT '0', |
||||||
|
resource_ids varchar(255) DEFAULT NULL, |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id,code), |
||||||
|
UNIQUE KEY task_unique (name,project_code) USING BTREE |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_task_definition_log |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_task_definition_log; |
||||||
|
CREATE TABLE t_ds_task_definition_log ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
code bigint(20) NOT NULL, |
||||||
|
name varchar(200) DEFAULT NULL, |
||||||
|
version int(11) DEFAULT NULL, |
||||||
|
description text, |
||||||
|
project_code bigint(20) NOT NULL, |
||||||
|
user_id int(11) DEFAULT NULL, |
||||||
|
task_type varchar(50) NOT NULL, |
||||||
|
task_params text, |
||||||
|
flag tinyint(2) DEFAULT NULL, |
||||||
|
task_priority tinyint(4) DEFAULT NULL, |
||||||
|
worker_group varchar(200) DEFAULT NULL, |
||||||
|
fail_retry_times int(11) DEFAULT NULL, |
||||||
|
fail_retry_interval int(11) DEFAULT NULL, |
||||||
|
timeout_flag tinyint(2) DEFAULT '0', |
||||||
|
timeout_notify_strategy tinyint(4) DEFAULT NULL, |
||||||
|
timeout int(11) DEFAULT '0', |
||||||
|
delay_time int(11) DEFAULT '0', |
||||||
|
resource_ids varchar(255) DEFAULT NULL, |
||||||
|
operator int(11) DEFAULT NULL, |
||||||
|
operate_time datetime DEFAULT NULL, |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_process_task_relation |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_process_task_relation; |
||||||
|
CREATE TABLE t_ds_process_task_relation ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
name varchar(200) DEFAULT NULL, |
||||||
|
process_definition_version int(11) DEFAULT NULL, |
||||||
|
project_code bigint(20) NOT NULL, |
||||||
|
process_definition_code bigint(20) NOT NULL, |
||||||
|
pre_task_code bigint(20) NOT NULL, |
||||||
|
pre_task_version int(11) NOT NULL, |
||||||
|
post_task_code bigint(20) NOT NULL, |
||||||
|
post_task_version int(11) NOT NULL, |
||||||
|
condition_type tinyint(2) DEFAULT NULL, |
||||||
|
condition_params text, |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_process_task_relation_log |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_process_task_relation_log; |
||||||
|
CREATE TABLE t_ds_process_task_relation_log ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
name varchar(200) DEFAULT NULL, |
||||||
|
process_definition_version int(11) DEFAULT NULL, |
||||||
|
project_code bigint(20) NOT NULL, |
||||||
|
process_definition_code bigint(20) NOT NULL, |
||||||
|
pre_task_code bigint(20) NOT NULL, |
||||||
|
pre_task_version int(11) NOT NULL, |
||||||
|
post_task_code bigint(20) NOT NULL, |
||||||
|
post_task_version int(11) NOT NULL, |
||||||
|
condition_type tinyint(2) DEFAULT NULL, |
||||||
|
condition_params text, |
||||||
|
operator int(11) DEFAULT NULL, |
||||||
|
operate_time datetime DEFAULT NULL, |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_process_instance |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_process_instance; |
||||||
|
CREATE TABLE t_ds_process_instance ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
name varchar(255) DEFAULT NULL, |
||||||
|
process_definition_version int(11) DEFAULT NULL, |
||||||
|
process_definition_code bigint(20) not NULL, |
||||||
|
state tinyint(4) DEFAULT NULL, |
||||||
|
recovery tinyint(4) DEFAULT NULL, |
||||||
|
start_time datetime DEFAULT NULL, |
||||||
|
end_time datetime DEFAULT NULL, |
||||||
|
run_times int(11) DEFAULT NULL, |
||||||
|
host varchar(135) DEFAULT NULL, |
||||||
|
command_type tinyint(4) DEFAULT NULL, |
||||||
|
command_param text, |
||||||
|
task_depend_type tinyint(4) DEFAULT NULL, |
||||||
|
max_try_times tinyint(4) DEFAULT '0', |
||||||
|
failure_strategy tinyint(4) DEFAULT '0', |
||||||
|
warning_type tinyint(4) DEFAULT '0', |
||||||
|
warning_group_id int(11) DEFAULT NULL, |
||||||
|
schedule_time datetime DEFAULT NULL, |
||||||
|
command_start_time datetime DEFAULT NULL, |
||||||
|
global_params text, |
||||||
|
flag tinyint(4) DEFAULT '1', |
||||||
|
update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
||||||
|
is_sub_process int(11) DEFAULT '0', |
||||||
|
executor_id int(11) NOT NULL, |
||||||
|
history_cmd text, |
||||||
|
process_instance_priority int(11) DEFAULT NULL, |
||||||
|
worker_group varchar(64) DEFAULT NULL, |
||||||
|
timeout int(11) DEFAULT '0', |
||||||
|
tenant_id int(11) NOT NULL DEFAULT '-1', |
||||||
|
var_pool longtext, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_process_instance |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_project |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_project; |
||||||
|
CREATE TABLE t_ds_project ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
name varchar(100) DEFAULT NULL, |
||||||
|
code bigint(20) NOT NULL, |
||||||
|
description varchar(200) DEFAULT NULL, |
||||||
|
user_id int(11) DEFAULT NULL, |
||||||
|
flag tinyint(4) DEFAULT '1', |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_project |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_queue |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_queue; |
||||||
|
CREATE TABLE t_ds_queue ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
queue_name varchar(64) DEFAULT NULL, |
||||||
|
queue varchar(64) DEFAULT NULL, |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_queue |
||||||
|
-- ---------------------------- |
||||||
|
INSERT INTO t_ds_queue VALUES ('1', 'default', 'default', null, null); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_relation_datasource_user |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_relation_datasource_user; |
||||||
|
CREATE TABLE t_ds_relation_datasource_user ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
user_id int(11) NOT NULL, |
||||||
|
datasource_id int(11) DEFAULT NULL, |
||||||
|
perm int(11) DEFAULT '1', |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_relation_datasource_user |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_relation_process_instance |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_relation_process_instance; |
||||||
|
CREATE TABLE t_ds_relation_process_instance ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
parent_process_instance_id int(11) DEFAULT NULL, |
||||||
|
parent_task_instance_id int(11) DEFAULT NULL, |
||||||
|
process_instance_id int(11) DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_relation_process_instance |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_relation_project_user |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_relation_project_user; |
||||||
|
CREATE TABLE t_ds_relation_project_user ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
user_id int(11) NOT NULL, |
||||||
|
project_id int(11) DEFAULT NULL, |
||||||
|
perm int(11) DEFAULT '1', |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_relation_project_user |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_relation_resources_user |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_relation_resources_user; |
||||||
|
CREATE TABLE t_ds_relation_resources_user ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
user_id int(11) NOT NULL, |
||||||
|
resources_id int(11) DEFAULT NULL, |
||||||
|
perm int(11) DEFAULT '1', |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_relation_resources_user |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_relation_udfs_user |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_relation_udfs_user; |
||||||
|
CREATE TABLE t_ds_relation_udfs_user ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
user_id int(11) NOT NULL, |
||||||
|
udf_id int(11) DEFAULT NULL, |
||||||
|
perm int(11) DEFAULT '1', |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_resources |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_resources; |
||||||
|
CREATE TABLE t_ds_resources ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
alias varchar(64) DEFAULT NULL, |
||||||
|
file_name varchar(64) DEFAULT NULL, |
||||||
|
description varchar(255) DEFAULT NULL, |
||||||
|
user_id int(11) DEFAULT NULL, |
||||||
|
type tinyint(4) DEFAULT NULL, |
||||||
|
size bigint(20) DEFAULT NULL, |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
pid int(11) DEFAULT NULL, |
||||||
|
full_name varchar(64) DEFAULT NULL, |
||||||
|
is_directory tinyint(4) DEFAULT NULL, |
||||||
|
PRIMARY KEY (id), |
||||||
|
UNIQUE KEY t_ds_resources_un (full_name,type) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_resources |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_schedules |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_schedules; |
||||||
|
CREATE TABLE t_ds_schedules ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
process_definition_id int(11) NOT NULL, |
||||||
|
start_time datetime NOT NULL, |
||||||
|
end_time datetime NOT NULL, |
||||||
|
timezone_id varchar(40) DEFAULT NULL, |
||||||
|
crontab varchar(255) NOT NULL, |
||||||
|
failure_strategy tinyint(4) NOT NULL, |
||||||
|
user_id int(11) NOT NULL, |
||||||
|
release_state tinyint(4) NOT NULL, |
||||||
|
warning_type tinyint(4) NOT NULL, |
||||||
|
warning_group_id int(11) DEFAULT NULL, |
||||||
|
process_instance_priority int(11) DEFAULT NULL, |
||||||
|
worker_group varchar(64) DEFAULT '', |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime NOT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_schedules |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_session |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_session; |
||||||
|
CREATE TABLE t_ds_session ( |
||||||
|
id varchar(64) NOT NULL, |
||||||
|
user_id int(11) DEFAULT NULL, |
||||||
|
ip varchar(45) DEFAULT NULL, |
||||||
|
last_login_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_session |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_task_instance |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_task_instance; |
||||||
|
CREATE TABLE t_ds_task_instance ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
name varchar(255) DEFAULT NULL, |
||||||
|
task_type varchar(50) NOT NULL, |
||||||
|
task_code bigint(20) NOT NULL, |
||||||
|
task_definition_version int(11) DEFAULT NULL, |
||||||
|
process_instance_id int(11) DEFAULT NULL, |
||||||
|
state tinyint(4) DEFAULT NULL, |
||||||
|
submit_time datetime DEFAULT NULL, |
||||||
|
start_time datetime DEFAULT NULL, |
||||||
|
end_time datetime DEFAULT NULL, |
||||||
|
host varchar(135) DEFAULT NULL, |
||||||
|
execute_path varchar(200) DEFAULT NULL, |
||||||
|
log_path varchar(200) DEFAULT NULL, |
||||||
|
alert_flag tinyint(4) DEFAULT NULL, |
||||||
|
retry_times int(4) DEFAULT '0', |
||||||
|
pid int(4) DEFAULT NULL, |
||||||
|
app_link text, |
||||||
|
task_params text, |
||||||
|
flag tinyint(4) DEFAULT '1', |
||||||
|
retry_interval int(4) DEFAULT NULL, |
||||||
|
max_retry_times int(2) DEFAULT NULL, |
||||||
|
task_instance_priority int(11) DEFAULT NULL, |
||||||
|
worker_group varchar(64) DEFAULT NULL, |
||||||
|
executor_id int(11) DEFAULT NULL, |
||||||
|
first_submit_time datetime DEFAULT NULL, |
||||||
|
delay_time int(4) DEFAULT '0', |
||||||
|
var_pool longtext, |
||||||
|
PRIMARY KEY (id), |
||||||
|
FOREIGN KEY (process_instance_id) REFERENCES t_ds_process_instance (id) ON DELETE CASCADE |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_task_instance |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_tenant |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_tenant; |
||||||
|
CREATE TABLE t_ds_tenant ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
tenant_code varchar(64) DEFAULT NULL, |
||||||
|
description varchar(255) DEFAULT NULL, |
||||||
|
queue_id int(11) DEFAULT NULL, |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_tenant |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_udfs |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_udfs; |
||||||
|
CREATE TABLE t_ds_udfs ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
user_id int(11) NOT NULL, |
||||||
|
func_name varchar(100) NOT NULL, |
||||||
|
class_name varchar(255) NOT NULL, |
||||||
|
type tinyint(4) NOT NULL, |
||||||
|
arg_types varchar(255) DEFAULT NULL, |
||||||
|
database varchar(255) DEFAULT NULL, |
||||||
|
description varchar(255) DEFAULT NULL, |
||||||
|
resource_id int(11) NOT NULL, |
||||||
|
resource_name varchar(255) NOT NULL, |
||||||
|
create_time datetime NOT NULL, |
||||||
|
update_time datetime NOT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_udfs |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_user |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_user; |
||||||
|
CREATE TABLE t_ds_user ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
user_name varchar(64) DEFAULT NULL, |
||||||
|
user_password varchar(64) DEFAULT NULL, |
||||||
|
user_type tinyint(4) DEFAULT NULL, |
||||||
|
email varchar(64) DEFAULT NULL, |
||||||
|
phone varchar(11) DEFAULT NULL, |
||||||
|
tenant_id int(11) DEFAULT NULL, |
||||||
|
create_time datetime DEFAULT NULL, |
||||||
|
update_time datetime DEFAULT NULL, |
||||||
|
queue varchar(64) DEFAULT NULL, |
||||||
|
state int(1) DEFAULT 1, |
||||||
|
PRIMARY KEY (id), |
||||||
|
UNIQUE KEY user_name_unique (user_name) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_user |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_worker_group |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_worker_group; |
||||||
|
CREATE TABLE t_ds_worker_group ( |
||||||
|
id bigint(11) NOT NULL AUTO_INCREMENT, |
||||||
|
name varchar(255) NOT NULL, |
||||||
|
addr_list text NULL DEFAULT NULL, |
||||||
|
create_time datetime NULL DEFAULT NULL, |
||||||
|
update_time datetime NULL DEFAULT NULL, |
||||||
|
PRIMARY KEY (id), |
||||||
|
UNIQUE KEY name_unique (name) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_worker_group |
||||||
|
-- ---------------------------- |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_version |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_version; |
||||||
|
CREATE TABLE t_ds_version ( |
||||||
|
id int(11) NOT NULL AUTO_INCREMENT, |
||||||
|
version varchar(200) NOT NULL, |
||||||
|
PRIMARY KEY (id), |
||||||
|
UNIQUE KEY version_UNIQUE (version) |
||||||
|
) ; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_version |
||||||
|
-- ---------------------------- |
||||||
|
INSERT INTO t_ds_version VALUES ('1', '1.4.0'); |
||||||
|
|
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_alertgroup |
||||||
|
-- ---------------------------- |
||||||
|
INSERT INTO t_ds_alertgroup(alert_instance_ids, create_user_id, group_name, description, create_time, update_time) |
||||||
|
VALUES ('1,2', 1, 'default admin warning group', 'default admin warning group', '2018-11-29 10:20:39', '2018-11-29 10:20:39'); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Records of t_ds_user |
||||||
|
-- ---------------------------- |
||||||
|
INSERT INTO t_ds_user |
||||||
|
VALUES ('1', 'admin', '7ad2410b2f4c074479a8937a28a22b8f', '0', 'xxx@qq.com', '', '0', '2018-03-27 15:48:50', '2018-10-24 17:40:22', null, 1); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_plugin_define |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_plugin_define; |
||||||
|
CREATE TABLE t_ds_plugin_define ( |
||||||
|
id int NOT NULL AUTO_INCREMENT, |
||||||
|
plugin_name varchar(100) NOT NULL, |
||||||
|
plugin_type varchar(100) NOT NULL, |
||||||
|
plugin_params text, |
||||||
|
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
||||||
|
update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
||||||
|
PRIMARY KEY (id), |
||||||
|
UNIQUE KEY t_ds_plugin_define_UN (plugin_name,plugin_type) |
||||||
|
); |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for t_ds_alert_plugin_instance |
||||||
|
-- ---------------------------- |
||||||
|
DROP TABLE IF EXISTS t_ds_alert_plugin_instance; |
||||||
|
CREATE TABLE t_ds_alert_plugin_instance ( |
||||||
|
id int NOT NULL AUTO_INCREMENT, |
||||||
|
plugin_define_id int NOT NULL, |
||||||
|
plugin_instance_params text, |
||||||
|
create_time timestamp NULL DEFAULT CURRENT_TIMESTAMP, |
||||||
|
update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
||||||
|
instance_name varchar(200) DEFAULT NULL, |
||||||
|
PRIMARY KEY (id) |
||||||
|
); |
@ -1,24 +0,0 @@ |
|||||||
<?xml version="1.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 suppressions PUBLIC |
|
||||||
"-//Puppy Crawl//DTD Suppressions 1.0//EN" |
|
||||||
"http://www.puppycrawl.com/dtds/suppressions_1_0.dtd"> |
|
||||||
|
|
||||||
<suppressions> |
|
||||||
|
|
||||||
</suppressions> |
|
Loading…
Reference in new issue