Browse Source

add log4j to resolve #967 (#1000)

* rename from DatasourceUserMapper to DataSourceUserMapper

* add unit test in UserMapper and WorkerGroupMapper

* change cn.escheduler to org.apache.dolphinscheduler

* add unit test in UdfFuncMapperTest

* add unit test in UdfFuncMapperTest

* remove DatabaseConfiguration

* add ConnectionFactoryTest

* cal duration in processInstancesList

* change desc to description

* change table name in mysql ddl

* change table name in mysql ddl

* change escheduler to dolphinscheduler

* change escheduler to dolphinscheduler

* change escheduler to dolphinscheduler

* remove log4j-1.2-api and modify AlertMapperTest

* remove log4j-1.2-api

* Add alertDao to spring management

* Add alertDao to spring management

* get SqlSessionFactory from MybatisSqlSessionFactoryBean

* get processDao by DaoFactory

* read druid properties in ConneciontFactory

* read druid properties in ConneciontFactory

* change get alertDao by spring to DaoFactory

* add log4j to resolve #967
lgcareer 5 năm trước cách đây
mục cha
commit
ee4fa9f6e6
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      dolphinscheduler-common/pom.xml
  2. 1 1
      script/dolphinscheduler-daemon.sh

+ 2 - 2
dolphinscheduler-common/pom.xml

@@ -49,8 +49,8 @@
 			<version>2.12.0</version>
 			<exclusions>
 				<exclusion>
-					<groupId>log4j</groupId>
-					<artifactId>log4j</artifactId>
+					<groupId>log4j-1.2-api</groupId>
+					<artifactId>org.apache.logging.log4j</artifactId>
 				</exclusion>
 				<exclusion>
 					<groupId>io.netty</groupId>

+ 1 - 1
script/dolphinscheduler-daemon.sh

@@ -50,7 +50,7 @@ elif [ "$command" = "worker-server" ]; then
   LOG_FILE="-Dspring.profiles.active=worker -Ddruid.mysql.usePingMethod=false"
   CLASS=org.apache.dolphinscheduler.server.worker.WorkerServer
 elif [ "$command" = "alert-server" ]; then
-  LOG_FILE="-Dspring.profiles.active=alert -Ddruid.mysql.usePingMethod=false"
+  LOG_FILE="-Dlogback.configurationFile=conf/alert_logback.xml"
   CLASS=org.apache.dolphinscheduler.alert.AlertServer
 elif [ "$command" = "logger-server" ]; then
   CLASS=org.apache.dolphinscheduler.server.rpc.LoggerServer