You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "det101 (via GitHub)" <gi...@apache.org> on 2025/06/06 08:29:56 UTC
[I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
det101 opened a new issue, #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244
### Search before asking
- [x] I had searched in the [DSIP](https://github.com/apache/dolphinscheduler/issues/14102) and found no similar DSIP.
### Motivation
Long - Term Support (LTS): Java 17 is the latest LTS version, which means it will receive long - term support and updates.
Performance Improvement: Java 17 introduces a variety of performance improvements, including optimizations in garbage collection and JIT compilation.
New Features: Java 17 brings many new features, such as pattern matching, records, and sealed classes, all of which can make code more concise and readable.
Enhanced Security: Java 8 has been discontinued, and Java 11 will no longer be updated after 2026. Security vulnerabilities will continue to increase. Upgrading to Java 17 can ensure the security of applications.
Other Projects: The latest versions of many projects currently support JDK 17 and JDK 21, such as Spring, Spark, StreamPack, Doris, and so on.
### Design Detail
**Upgrade Plan**
DS has already supported JDK 11, so the upgrade to 1 should7 not be too difficult. We will proceed with the principle of forward compatibility and minimal code changes, with the ultimate goal of enabling the project to run on JDK 8, JDK 11, and JDK 17.
**Before starting the upgrade, I will conduct the following research:**
1. Evaluate static code compatibility issues using various tools such as jdeps, jdeprscan, and EMT4J to get a rough overview of the changes needed for the project. Discuss the results with the PMC.
### Compatibility, Deprecation, and Migration Plan
_No response_
### Test Plan
1. Compile with Java 8 and conduct integration tests in a Java 17 environment to identify and resolve issues.
```
- All modifications are made with the principle of forward compatibility. If compatibility is not possible, provide clear explanations.
- Conduct integration testing of the entire process to ensure that all tasks can be executed normally.
```
2. Verify whether E2E and UT tests can be conducted under JDK 17 and resolve any issues found.
3. Update community documentation.
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2969126879
> > If there is a situation where a higher-version dependency cannot support a lower-version cloud service, then users can only choose to run on JDK8/11.
>
> This needs to be discussed. [@zhongjiajie](https://github.com/zhongjiajie) [@ruanwenjun](https://github.com/ruanwenjun) [@Gallardot](https://github.com/Gallardot) [@caishunfeng](https://github.com/caishunfeng)
>
> > There should be no problem submitting through the command line (such as hive -e, spark-sql, hdfs commands).
>
> Yes. Command line operation will not be affected. What I mean is many dependencies in `pom.xml` don't support jdk17. If you upgrade, you need to change the code. How to ensure the compatibility after upgrading? We need full design detail of all dependencies that need to be upgraded.
AFAIK, JDK17 is compatible with previous version, e.g. 8, 11, maybe some JVM args are not compatible, this is acceptable since we only provide the basic jvm args in the source code. But this still need to test, the ci can only make sure it can compile/run the basic case in JDK17.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "det101 (via GitHub)" <gi...@apache.org>.
det101 commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2948496935

--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "det101 (via GitHub)" <gi...@apache.org>.
det101 commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2955000165
> Thanks for bringing this. Before PR there are still some issues to be sorted out.
>
> 1. There are a lot of third-party cloud dependencies on data source types, task types and storage types, such as AWS, Tencent Cloud, Alibaba Cloud, GCP and so on. These closed-source tools can't be realized by open-source automated testing. How to ensure that these will work normally after the upgrade is completed?
> 2. Hadoop 2 does not support JDK17, and there are still a large number of users using Hadoop 2. How to achieve Hadoop 2 compatibility under JDK 17?
> 3. Many third-party open source dependencies need to be upgraded. How to ensure the compatibility after upgrading?
The purpose of the upgrade is to enable DS to run on JDK17. The problem you mentioned can be solved by the following methods:
1. Regarding third-party cloud dependencies, including compatibility issues of data source types, task types, and storage types, I would first read the developer documentation of all third-party clouds to understand the support of the current reference version of DS for JDK17. If it is clearly not supported, check whether the new version of the dependency is forward compatible with lower-version services (I have seen S3 2.X versions support JDK17). If there is a situation where a higher-version dependency cannot support a lower-version cloud service, then users can only choose to run on JDK8/11.
2. There should be no problem submitting through the command line (such as hive -e, spark-sql, hdfs commands). Components use their own dependent JDKs, and DS uses JDK17 (multiple JDK environments are also common now). Similar to hadoop dependencies, low-version JDK dependencies may indeed have problems under JDK17 (to be verified). This issue requires determining which version hadoop DS supports by default. Or if it is 2.x, DS at least provides support for JDK17, and users only need to update the hadoop3-related dependency version. Regarding (hadoop3+DS), I can fully verify it in JDK17.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2948540562
cc @Gallardot @zhongjiajie @ruanwenjun @caishunfeng @EricGao888
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "det101 (via GitHub)" <gi...@apache.org>.
det101 commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2968933766
> > If there is a situation where a higher-version dependency cannot support a lower-version cloud service, then users can only choose to run on JDK8/11.
>
> This needs to be discussed. [@zhongjiajie](https://github.com/zhongjiajie) [@ruanwenjun](https://github.com/ruanwenjun) [@Gallardot](https://github.com/Gallardot) [@caishunfeng](https://github.com/caishunfeng)
>
> > There should be no problem submitting through the command line (such as hive -e, spark-sql, hdfs commands).
>
> Yes. Command line operation will not be affected. What I mean is many dependencies in `pom.xml` don't support jdk17. If you upgrade, you need to change the code. How to ensure the compatibility after upgrading? We need full design detail of all dependencies that need to be upgraded.
I learned about DataWorks, and it doesn't have the concept of projects. Its namespace is the workflow. In addition, its project space is physically isolated, which is reasonable on the public cloud. Can we balance the benefits and complexity of introducing namespaces on the project? And it is impossible to achieve physical isolation. There should be no public cloud model for using DS (of course, we have also modified the DS cloud, and the worker is opened on the user vpc, but there is no problem with the workspace for the time being).
我学习了下dataworks,他没有项目的概念,他的命名空间下面就是工作流。另外他的项目空间是做物理隔离的,这在公有云上是合理的; 我们在项目上面再引入命名空间能带来的收益和复杂度是否能平衡,而且也无法实现物理隔离,使用DS应该还没有公有云的模式(当然我们也把DS云上做了改造,worker在用户vpc上开,但还没有引工作空间暂时也没有问题)
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2974911473
> Is it possible to use compilation parameters to support hadoop 2x_java8_11 and hadoop3x_java8_11_17? By the way, Hadoop will support jdk17 in 3.5 https://issues.apache.org/jira/browse/HADOOP-17177
I can't estimate the scope of influence. If the scope is too large, I think the upgrade is not worth the candle.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2969889139
> > > If there is a situation where a higher-version dependency cannot support a lower-version cloud service, then users can only choose to run on JDK8/11.
> >
> >
> > This needs to be discussed. [@zhongjiajie](https://github.com/zhongjiajie) [@ruanwenjun](https://github.com/ruanwenjun) [@Gallardot](https://github.com/Gallardot) [@caishunfeng](https://github.com/caishunfeng)
> > > There should be no problem submitting through the command line (such as hive -e, spark-sql, hdfs commands).
> >
> >
> > Yes. Command line operation will not be affected. What I mean is many dependencies in `pom.xml` don't support jdk17. If you upgrade, you need to change the code. How to ensure the compatibility after upgrading? We need full design detail of all dependencies that need to be upgraded.
>
> AFAIK, JDK17 is compatible with previous version, e.g. 8, 11, maybe some JVM args are not compatible, this is acceptable since we only provide the basic jvm args in the source code. But this still need to test, the ci can only make sure it can compile/run the basic case in JDK17.
I find hadoop2 sdk cannot use JDK17 due to some reflect usage.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "det101 (via GitHub)" <gi...@apache.org>.
det101 commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2974868941
> > > > If there is a situation where a higher-version dependency cannot support a lower-version cloud service, then users can only choose to run on JDK8/11.
> > >
> > >
> > > This needs to be discussed. [@zhongjiajie](https://github.com/zhongjiajie) [@ruanwenjun](https://github.com/ruanwenjun) [@Gallardot](https://github.com/Gallardot) [@caishunfeng](https://github.com/caishunfeng)
> > > > There should be no problem submitting through the command line (such as hive -e, spark-sql, hdfs commands).
> > >
> > >
> > > Yes. Command line operation will not be affected. What I mean is many dependencies in `pom.xml` don't support jdk17. If you upgrade, you need to change the code. How to ensure the compatibility after upgrading? We need full design detail of all dependencies that need to be upgraded.
> >
> >
> > AFAIK, JDK17 is compatible with previous version, e.g. 8, 11, maybe some JVM args are not compatible, this is acceptable since we only provide the basic jvm args in the source code. But this still need to test, the ci can only make sure it can compile/run the basic case in JDK17.
>
> I find hadoop2 sdk cannot use JDK17 due to some reflect usage.
Is it possible to use compilation parameters to support hadoop 2x_java8_11 and hadoop3x_java8_11_17? By the way, Hadoop will support jdk17 in 3.5 https://issues.apache.org/jira/browse/HADOOP-17177
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "det101 (via GitHub)" <gi...@apache.org>.
det101 commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2969376318
> > > If there is a situation where a higher-version dependency cannot support a lower-version cloud service, then users can only choose to run on JDK8/11.
> >
> >
> > This needs to be discussed. [@zhongjiajie](https://github.com/zhongjiajie) [@ruanwenjun](https://github.com/ruanwenjun) [@Gallardot](https://github.com/Gallardot) [@caishunfeng](https://github.com/caishunfeng)
> > > There should be no problem submitting through the command line (such as hive -e, spark-sql, hdfs commands).
> >
> >
> > Yes. Command line operation will not be affected. What I mean is many dependencies in `pom.xml` don't support jdk17. If you upgrade, you need to change the code. How to ensure the compatibility after upgrading? We need full design detail of all dependencies that need to be upgraded.
>
> AFAIK, JDK17 is compatible with previous version, e.g. 8, 11, maybe some JVM args are not compatible, this is acceptable since we only provide the basic jvm args in the source code. But this still need to test, the ci can only make sure it can compile/run the basic case in JDK17.
Yes, for incompatible JVM parameters, we need to provide different JVM configurations, or start checking the version to select the best configuration. Of course, this requires system testing.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "zhongjiajie (via GitHub)" <gi...@apache.org>.
zhongjiajie commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2951546291
GLTM
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "det101 (via GitHub)" <gi...@apache.org>.
det101 commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2968938165
> > If there is a situation where a higher-version dependency cannot support a lower-version cloud service, then users can only choose to run on JDK8/11.
>
> This needs to be discussed. [@zhongjiajie](https://github.com/zhongjiajie) [@ruanwenjun](https://github.com/ruanwenjun) [@Gallardot](https://github.com/Gallardot) [@caishunfeng](https://github.com/caishunfeng)
>
> > There should be no problem submitting through the command line (such as hive -e, spark-sql, hdfs commands).
>
> Yes. Command line operation will not be affected. What I mean is many dependencies in `pom.xml` don't support jdk17. If you upgrade, you need to change the code. How to ensure the compatibility after upgrading? We need full design detail of all dependencies that need to be upgraded.
I will try it in our environment first to see what problems I will encounter, and will share the problems with the community for your reference
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2954539602
Thanks for bringing this. Before PR there are still some issues to be sorted out.
1. There are a lot of third-party cloud dependencies on data source types, task types and storage types, such as AWS, Tencent Cloud, Alibaba Cloud, GCP and so on. These closed-source tools can't be realized by open-source automated testing. How to ensure that these will work normally after the upgrade is completed?
2. Hadoop 2 does not support JDK17, and there are still a large number of users using Hadoop 2. How to achieve Hadoop 2 compatibility under JDK 17?
3. Many third-party open source dependencies need to be upgraded. How to ensure the compatibility after upgrading?
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #17244:
URL: https://github.com/apache/dolphinscheduler/issues/17244#issuecomment-2957580389
> If there is a situation where a higher-version dependency cannot support a lower-version cloud service, then users can only choose to run on JDK8/11.
This needs to be discussed. @zhongjiajie @ruanwenjun @Gallardot @caishunfeng
> There should be no problem submitting through the command line (such as hive -e, spark-sql, hdfs commands).
Yes. Command line operation will not be affected. What I mean is many dependencies in `pom.xml` don't support jdk17. If you upgrade, you need to change the code. How to ensure the compatibility after upgrading? We need full design detail of all dependencies that need to be upgraded.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [DSIP-89][JDK] Supports running on JDK17 [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS closed issue #17244: [DSIP-89][JDK] Supports running on JDK17
URL: https://github.com/apache/dolphinscheduler/issues/17244
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org