private void addYarnProperties(FlinkConf flinkConf) {
    // Load optimizer jar first
    flinkConf.putToOptions(
        FlinkConfKeys.CLASSPATH_INCLUDE_USER_JAR, FlinkConfKeys.CLASSPATH_INCLUDE_USER_JAR_DEFAULT);
  }
Copy from flink 1.20 GlobalConfiguration.flatten Utils

@param config
@param keyPrefix
@return
amoro-ams/src/main/java/org/apache/amoro/server/manager/FlinkOptimizerContainer.java