You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ki...@apache.org on 2021/01/22 04:31:23 UTC

[incubator-dolphinscheduler] branch dev updated: fix alert property utils init properties. (#4527)

This is an automated email from the ASF dual-hosted git repository.

kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 34b0f30  fix alert property utils init properties. (#4527)
34b0f30 is described below

commit 34b0f30aef8b566aa6d3355b54061ebae0aef305
Author: zhuangchong <37...@users.noreply.github.com>
AuthorDate: Fri Jan 22 12:31:14 2021 +0800

    fix alert property utils init properties. (#4527)
---
 .../java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java  | 5 +++++
 dolphinscheduler-alert/src/main/resources/alert.properties           | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java b/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java
index 8da9abe..16bcb6b 100644
--- a/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java
+++ b/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java
@@ -43,6 +43,11 @@ public class PropertyUtils {
 
     private static final Properties properties = new Properties();
 
+    /**
+     *  init properties
+     */
+    private static final PropertyUtils propertyUtils = new PropertyUtils();
+
     private PropertyUtils() {
         init();
     }
diff --git a/dolphinscheduler-alert/src/main/resources/alert.properties b/dolphinscheduler-alert/src/main/resources/alert.properties
index c153b9b..cad6488 100644
--- a/dolphinscheduler-alert/src/main/resources/alert.properties
+++ b/dolphinscheduler-alert/src/main/resources/alert.properties
@@ -22,7 +22,7 @@
 
 #alert.plugin.dir config the Alert Plugin dir . AlertServer while find and load the Alert Plugin Jar from this dir when deploy and start AlertServer on the server .
 #eg :
-alert.plugin.dir=/opt/soft/spi/lib/plugin/alert
+#alert.plugin.dir=/opt/soft/spi/lib/plugin/alert
 
 #maven.local.repository=/Users/gaojun/Documents/jianguoyun/localRepository