ailiujiarui commented on code in PR #16542: URL: https://github.com/apache/dolphinscheduler/pull/16542#discussion_r1839842572
########## docs/docs/zh/guide/task/java.md: ########## @@ -2,7 +2,7 @@ ## 综述 -该节点用于执行 java 类型的任务,支持使用单文件和jar包作为程序入口。 +该节点用于执行 java 类型的任务,支持使用fat类型和normal类型的jar包作为程序入口。 Review Comment: The docs have updated ########## docs/docs/zh/guide/task/java.md: ########## @@ -22,25 +22,38 @@ | 模块路径 | 开启使用JAVA9+的模块化特性,把所有资源放入--module-path中,要求您的worker中的JDK版本支持模块化 | | 主程序参数 | 作为普通Java程序main方法入口参数 | | 虚拟机参数 | 配置启动虚拟机参数 | -| 脚本 | 若使用JAVA运行类型则需要编写JAVA代码。代码中必须存在public类,不用写package语句 | +| 主程序包 | 选择要运行程序的主程序包 | | 资源 | 可以是外部JAR包也可以是其他资源文件,它们都会被加入到类路径或模块路径中,您可以在自己的JAVA脚本中轻松获取 | ## 任务样例 -java任务类型有两种运行模式,这里以JAVA模式为例进行演示。 +java任务类型有两种运行模式,这里进行分别进行演示。 主要配置参数如下: - 运行类型 - 模块路径 - 主程序参数 - 虚拟机参数 -- 脚本文件 +- 主程序包 +- 资源文件 - +如图所示 + +- FAT_JAR类型 + + + +因为fat类型的jar,依赖和代码都在同一个jar中,则只需选择这一个jar即可 Review Comment: The docs have updated -- 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]
