之于

Flink源码阅读 - 日进斗经

2022-01-04 配置加载

org.apache.flink.kubernetes.entrypoint.KubernetesSessionClusterEntrypoint#main  //K8sSession模式启动入口
org.apache.flink.runtime.util.EnvironmentInformation#logEnvironmentInfo  //加载环境信息
org/apache/flink/runtime/util/EnvironmentInformation.java:404  //获取继承的环境配置 FLINK_INHERITED_LOGS
flink-dist/src/main/flink-bin/bin/config.sh:544  //配置环境变量 FLINK_INHERITED_LOGS
flink-dist/src/main/flink-bin/bin/config.sh:529  //配置 java_utils_output
flink-dist/src/main/flink-bin/bin/config.sh:478  //runBashJavaUtilsCmd 执行javaBean解析命令参数
flink-dist/src/main/flink-bin/bin/config.sh:485
org.apache.flink.runtime.util.bash.BashJavaUtils#main
org/apache/flink/runtime/util/bash/BashJavaUtils.java:56  // runCommand
org/apache/flink/runtime/util/bash/BashJavaUtils.java:64  // loadConfiguration
org.apache.flink.runtime.util.bash.FlinkConfigLoader#filterCmdArgs
org/apache/flink/runtime/util/bash/FlinkConfigLoader.java:42  // loadCommonConfiguration
org/apache/flink/runtime/util/ConfigurationParserUtils.java:135  // commandLineParser.parse(args)
org/apache/flink/runtime/entrypoint/parser/CommandLineParser.java:46 // commocommons-cli包解析命令行, 涉及CommandLine, Options, CommandLineParser
org/apache/flink/runtime/util/ConfigurationParserUtils.java:144 // loadConfiguration
org/apache/flink/configuration/GlobalConfiguration.java:135  // loadYAMLResource(yamlConfigFile)
org.apache.flink.configuration.GlobalConfiguration#loadYAMLResource  // 仅使用yaml的k:v简化解析, 以后根据需要再引入yaml标准解析

2022-01-05 KubernetesSessionCli 启动K8sSession模式

org/apache/flink/kubernetes/cli/KubernetesSessionCli.java:189 

参考:

 

posted on 2022-01-04 10:17  之于  阅读(246)  评论(0编辑  收藏  举报

导航