dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[QUESTION] WorkServer exec Task on localhost report NPE

Open HQTB123 opened this issue 6 years ago • 5 comments

image

WorkerServer exec task on localhost the getLogPath method report NPE

HQTB123 avatar Apr 30 '20 11:04 HQTB123

Please add logback-xx.xml in vm options when you run ds on localhost

liwenhe1993 avatar Apr 30 '20 15:04 liwenhe1993

+1,I've had this problem

itbasketplayer avatar May 01 '20 10:05 itbasketplayer

@liwenhe1993 could you tell me the key?

jianghuzai avatar May 04 '20 05:05 jianghuzai

@liwenhe1993 thanks,I found the key

I am use idea. master vm option:

-Dspring.profiles.active=master -Dlogging.config="dolphinscheduler-server/src/main/resources/master_logback.xml"

worker vm option:

-Dspring.profiles.active=worker -Dlogging.config="dolphinscheduler-server/src/main/resources/worker_logback.xml"

CombinedApplicationServer vm option

-Dlogging.config="dolphinscheduler-api/src/main/resources/apiserver_logback.xml"

CombinedApplicationServer active profiles:

api

jianghuzai avatar May 04 '20 06:05 jianghuzai

@liwenhe1993 thanks,I found the key

I am use idea. master vm option:

-Dspring.profiles.active=master -Dlogging.config="dolphinscheduler-server/src/main/resources/master_logback.xml"

worker vm option:

-Dspring.profiles.active=worker -Dlogging.config="dolphinscheduler-server/src/main/resources/worker_logback.xml"

CombinedApplicationServer vm option

-Dlogging.config="dolphinscheduler-api/src/main/resources/apiserver_logback.xml"

CombinedApplicationServer active profiles:

api

good job

liwenhe1993 avatar May 09 '20 01:05 liwenhe1993