You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar feature requirement.
Description
When creating a new MySQL data source, I need to copy the MySQL data source JAR file to the following directories: api-server/libs, alert-server/libs, master-server/libs, worker-server/libs, and tools/libs. Currently, I can only achieve this by modifying the YAML files in the helm/templates folder.
command:
- sh
- -c
- | sed -i 's|$DOLPHINSCHEDULER_HOME/libs/\*|$DOLPHINSCHEDULER_HOME/libs/\*":"$CLASSPATH_API|g' /opt/dolphinscheduler/bin/start.sh; exec /opt/dolphinscheduler/bin/start.sh
Additionally, after replacing the code as described, I need to configure the classpath_api environment variable externally to load the MySQL driver from common.sharedStoragePersistence. This method is extremely cumbersome.
It would be better to provide a Persistent Volume Claim (PVC) to load external JAR files. Ideally, there should be a separate external JAR loading path for each component: api-server, alert-server, master-server, worker-server, and tools. This would allow external users to easily provide these JAR files to DolphinScheduler.
For missing JARs, such as MySQL or Oracle, rebuilding docker images directly may be more convenient in many cases. However, shared storage is also a suitable solution. Welcome to create a PR to make this feature possible.
Another solution is to modify the java startup command in /opt/dolphinscheduler/bin/start.sh by adding the CLASSPATH environment variable to the -cp parameter. Then, in Helm, provide separate environment variable configurations for the api-server/libs, alert-server/libs, master-server/libs, worker-server/libs, and tools/libs components. We need to discuss the best solution.
Search before asking
Description
When creating a new MySQL data source, I need to copy the MySQL data source JAR file to the following directories:
api-server/libs
,alert-server/libs
,master-server/libs
,worker-server/libs
, andtools/libs
. Currently, I can only achieve this by modifying the YAML files in thehelm/templates
folder.Additionally, after replacing the code as described, I need to configure the
classpath_api
environment variable externally to load the MySQL driver fromcommon.sharedStoragePersistence
. This method is extremely cumbersome.It would be better to provide a Persistent Volume Claim (PVC) to load external JAR files. Ideally, there should be a separate external JAR loading path for each component:
api-server
,alert-server
,master-server
,worker-server
, andtools
. This would allow external users to easily provide these JAR files to DolphinScheduler.Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: