Browse Source

issue-6298-added-the-task-plugin (#6299)

RichardStark 3 years ago
parent
commit
d184ebda1e

+ 3 - 0
dolphinscheduler-server/src/main/resources/config/install_config.conf

@@ -111,6 +111,9 @@ sudoEnable="true"
 # worker tenant auto create
 # worker tenant auto create
 workerTenantAutoCreate="false"
 workerTenantAutoCreate="false"
 
 
+# worker task plugin dir
+taskPluginDir="/data1_1T/dolphinscheduler/lib/plugin/task"
+
 # api server port
 # api server port
 apiServerPort="12345"
 apiServerPort="12345"
 
 

+ 2 - 0
install.sh

@@ -61,6 +61,8 @@ sed -i ${txt} "s@^sudo.enable=.*@sudo.enable=${sudoEnable}@g" conf/common.proper
 # the following configurations may be commented, so ddd #\? to ensure successful sed
 # 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@^#\?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.listen.host=.*@alert.listen.host=${alertServer}@g" conf/worker.properties
+sed -i ${txt} "s@^#\?task.plugin.dir=.*@task.plugin.dir=${taskPluginDir}@g" conf/worker.properties
+
 sed -i ${txt} "s@^#\?alert.plugin.dir=.*@alert.plugin.dir=${alertPluginDir}@g" conf/alert.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
 sed -i ${txt} "s@^#\?server.port=.*@server.port=${apiServerPort}@g" conf/application-api.properties