gubinjie commented on issue #13946:
URL: 
https://github.com/apache/dolphinscheduler/issues/13946#issuecomment-1514300925

   I changed all components of DolphinScheduler in conf/application.yaml for 
database connections to dolphinscheduler_env.sh
   export SPRING_DATASOURCE_URL="***"
   export SPRING_DATASOURCE_USERNAME=root
   export SPRING_DATASOURCE_PASSWORD=****
   , and set #export DATABASE=${DATABASE:-mysql}
   #export SPRING_PROFILES_ACTIVE=${DATABASE}
   These two parameters are commented out so that when I call java -jar 
test.jar using the shell, he uses the default profile=default, as shown in 
Figure 1.
   
   
![1681891054256](https://user-images.githubusercontent.com/37869445/233008171-485472a7-ace5-4182-a5f9-2b88b58cc2eb.jpg)
   
   But even with profile=default, my own project (test.jar) will still use the 
dolphinscheduler metadata storage library (dolphinscheduler), as shown in 
Figure 2
   
![1681890962797](https://user-images.githubusercontent.com/37869445/233007641-489c7dd7-ebd1-4be6-a4d0-2a1881762b1d.jpg)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to