From 525a446bd65e1646d592439e04bb509cc66eb6eb Mon Sep 17 00:00:00 2001 From: pegasas Date: Mon, 10 Jun 2024 10:45:45 +0800 Subject: [PATCH] test --- .../src/main/resources/application.yaml | 22 +++++++++---------- .../src/main/resources/logback-spring.xml | 6 +---- .../src/main/resources/application.yaml | 22 +++++++++---------- .../src/main/resources/logback-spring.xml | 6 +---- .../src/main/resources/aws.yaml | 6 ++--- .../src/main/resources/common.properties | 2 +- .../src/main/resources/application.yaml | 22 +++++++++---------- .../src/main/resources/logback-spring.xml | 8 ++----- .../BaseLinuxShellInterceptorBuilder.java | 5 +++++ dolphinscheduler-ui/pnpm-lock.yaml | 18 +-------------- .../server/worker/utils/TenantUtils.java | 3 ++- .../src/main/resources/application.yaml | 22 +++++++++---------- .../src/main/resources/logback-spring.xml | 10 +++------ 13 files changed, 59 insertions(+), 93 deletions(-) diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml index 6fbcc04feb..8f76fcddfd 100644 --- a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml +++ b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml @@ -77,18 +77,16 @@ alert: sender-parallelism: 100 registry: - type: zookeeper - zookeeper: - namespace: dolphinscheduler - connect-string: localhost:2181 - retry-policy: - base-sleep-time: 60ms - max-sleep: 300ms - max-retries: 5 - session-timeout: 30s - connection-timeout: 9s - block-until-connected: 600ms - digest: ~ + type: jdbc + term-refresh-interval: 2s + term-expire-times: 3 + hikari-config: + jdbc-url: jdbc:postgresql://localhost:5432/dolphinscheduler + username: root + password: root + maximum-pool-size: 5 + connection-timeout: 9000 + idle-timeout: 600000 metrics: enabled: true diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/logback-spring.xml b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/logback-spring.xml index 81c8042bc5..db58b54373 100644 --- a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/logback-spring.xml +++ b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/logback-spring.xml @@ -46,11 +46,7 @@ - - - - - + diff --git a/dolphinscheduler-api/src/main/resources/application.yaml b/dolphinscheduler-api/src/main/resources/application.yaml index e38d0c5a8e..e6f1fb03a6 100644 --- a/dolphinscheduler-api/src/main/resources/application.yaml +++ b/dolphinscheduler-api/src/main/resources/application.yaml @@ -113,18 +113,16 @@ management: application: ${spring.application.name} registry: - type: zookeeper - zookeeper: - namespace: dolphinscheduler - connect-string: localhost:2181 - retry-policy: - base-sleep-time: 60ms - max-sleep: 300ms - max-retries: 5 - session-timeout: 60s - connection-timeout: 15s - block-until-connected: 15s - digest: ~ + type: jdbc + term-refresh-interval: 2s + term-expire-times: 3 + hikari-config: + jdbc-url: jdbc:postgresql://localhost:5432/dolphinscheduler + username: root + password: root + maximum-pool-size: 5 + connection-timeout: 9000 + idle-timeout: 600000 api: audit-enable: false diff --git a/dolphinscheduler-api/src/main/resources/logback-spring.xml b/dolphinscheduler-api/src/main/resources/logback-spring.xml index 1982d6de5b..97173c25c9 100644 --- a/dolphinscheduler-api/src/main/resources/logback-spring.xml +++ b/dolphinscheduler-api/src/main/resources/logback-spring.xml @@ -51,11 +51,7 @@ - - - - - + diff --git a/dolphinscheduler-authentication/dolphinscheduler-aws-authentication/src/main/resources/aws.yaml b/dolphinscheduler-authentication/dolphinscheduler-aws-authentication/src/main/resources/aws.yaml index 6d453bb78a..bb9b4d29f3 100644 --- a/dolphinscheduler-authentication/dolphinscheduler-aws-authentication/src/main/resources/aws.yaml +++ b/dolphinscheduler-authentication/dolphinscheduler-aws-authentication/src/main/resources/aws.yaml @@ -21,11 +21,11 @@ aws: # AWSStaticCredentialsProvider: use the access key and secret key to authenticate # InstanceProfileCredentialsProvider: use the IAM role to authenticate credentials.provider.type: AWSStaticCredentialsProvider - access.key.id: accessKey123 - access.key.secret: secretKey123 + access.key.id: minioadmin + access.key.secret: minioadmin region: us-east-1 bucket.name: dolphinscheduler - endpoint: http://s3:9000 + endpoint: http://localhost:9000 emr: # The AWS credentials provider type. support: AWSStaticCredentialsProvider, InstanceProfileCredentialsProvider # AWSStaticCredentialsProvider: use the access key and secret key to authenticate diff --git a/dolphinscheduler-common/src/main/resources/common.properties b/dolphinscheduler-common/src/main/resources/common.properties index cf1723700e..36d1ca1544 100644 --- a/dolphinscheduler-common/src/main/resources/common.properties +++ b/dolphinscheduler-common/src/main/resources/common.properties @@ -24,7 +24,7 @@ data.basedir.path=/tmp/dolphinscheduler # resource storage type: LOCAL, HDFS, S3, OSS, GCS, ABS, OBS. LOCAL type is default type, and it's a specific type of HDFS with "resource.hdfs.fs.defaultFS = file:///" configuration # please notice that LOCAL mode does not support reading and writing in distributed mode, which mean you can only use your resource in one machine, unless # use shared file mount point -resource.storage.type=LOCAL +resource.storage.type=S3 # resource store on HDFS/S3 path, resource file will store to this base path, self configuration, please make sure the directory exists on hdfs and have read write permissions. "/dolphinscheduler" is recommended resource.storage.upload.base.path=/dolphinscheduler diff --git a/dolphinscheduler-master/src/main/resources/application.yaml b/dolphinscheduler-master/src/main/resources/application.yaml index 17b1e41a71..ea03bcde05 100644 --- a/dolphinscheduler-master/src/main/resources/application.yaml +++ b/dolphinscheduler-master/src/main/resources/application.yaml @@ -68,18 +68,16 @@ mybatis-plus: registry: - type: zookeeper - zookeeper: - namespace: dolphinscheduler - connect-string: localhost:2181 - retry-policy: - base-sleep-time: 60ms - max-sleep: 300ms - max-retries: 5 - session-timeout: 30s - connection-timeout: 9s - block-until-connected: 600ms - digest: ~ + type: jdbc + term-refresh-interval: 2s + term-expire-times: 3 + hikari-config: + jdbc-url: jdbc:postgresql://localhost:5432/dolphinscheduler + username: root + password: root + maximum-pool-size: 5 + connection-timeout: 9000 + idle-timeout: 600000 master: listen-port: 5678 diff --git a/dolphinscheduler-master/src/main/resources/logback-spring.xml b/dolphinscheduler-master/src/main/resources/logback-spring.xml index efc5a513c6..e50f711a72 100644 --- a/dolphinscheduler-master/src/main/resources/logback-spring.xml +++ b/dolphinscheduler-master/src/main/resources/logback-spring.xml @@ -67,12 +67,8 @@ - - - - - - + + diff --git a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java index afc2edc586..1fec85f334 100644 --- a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java +++ b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java @@ -48,6 +48,11 @@ public abstract class BaseLinuxShellInterceptorBuilder - - - - - - + + - + \ No newline at end of file