当前位置: 首页 > news >正文

甘南藏族自治州网站建设_网站建设公司_展示型网站_seo优化

云主机是不是可以搭建无数个网站,怎么查看网站外链,无锡市建设银行总行网站,免费制作app的手机软件Flink on yarn 加载失败plugins失效问题解决 flink版本#xff1a;1.13.6 1. 问题 flink 任务运行在yarn集群,plugins加载失效,导致通过扩展资源获取任务参数失效 2. 问题定位 yarn容器的jar包及插件信息,jar包是正常上传 源码定位 加载plugins入口#xff0c;TaskMana…Flink on yarn 加载失败plugins失效问题解决 flink版本1.13.6 1. 问题 flink 任务运行在yarn集群,plugins加载失效,导致通过扩展资源获取任务参数失效 2. 问题定位 yarn容器的jar包及插件信息,jar包是正常上传 源码定位 加载plugins入口TaskManagerRunner.class PluginUtils.createPluginManagerFromRootFolder 源码加载扩展资源参数入口TaskManagerRunner.class ExternalResourceUtils.createStaticExternalResourceInfoProviderFromConfig 日志信息 定位PluginConfig源码 3. 方案 重写覆盖集群的PluginConfig.java,优先从configurtaion获取 /** Licensed to the Apache Software Foundation (ASF) under one* or more contributor license agreements. See the NOTICE file* distributed with this work for additional information* regarding copyright ownership. The ASF licenses this file* to you under the Apache License, Version 2.0 (the* License); you may not use this file except in compliance* with the License. You may obtain a copy of the License at** http://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an AS IS BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* See the License for the specific language governing permissions and* limitations under the License.*/package org.apache.flink.core.plugin;import com.alibaba.fastjson.JSON; import org.apache.commons.lang3.StringUtils; import org.apache.flink.configuration.*;import org.slf4j.Logger; import org.slf4j.LoggerFactory;import java.io.File; import java.nio.file.Path; import java.util.Arrays; import java.util.Objects; import java.util.Optional;/** Stores the configuration for plugins mechanism. */ SuppressWarnings(OptionalUsedAsFieldOrParameterType) public class PluginConfig {private static final Logger LOG LoggerFactory.getLogger(PluginConfig.class);private static final String PUPU_FLINK_PLUGINS_DIR flink_plugins_dir;private final OptionalPath pluginsPath;private final String[] alwaysParentFirstPatterns;private PluginConfig(OptionalPath pluginsPath, String[] alwaysParentFirstPatterns) {pluginsPath.ifPresent(path - LOG.info(pluginsPath: {}, path));LOG.info(alwaysParentFirstPatterns: {}, Arrays.stream(alwaysParentFirstPatterns).toArray());this.pluginsPath pluginsPath;this.alwaysParentFirstPatterns alwaysParentFirstPatterns;}public OptionalPath getPluginsPath() {return pluginsPath;}public String[] getAlwaysParentFirstPatterns() {return alwaysParentFirstPatterns;}public static PluginConfig fromConfiguration(Configuration configuration) {return new PluginConfig(getPluginsDir(configuration).map(File::toPath),CoreOptions.getPluginParentFirstLoaderPatterns(configuration));}public static OptionalFile getPluginsDir(Configuration configuration) {String pluginsDir configuration.get(ConfigOptions.key(PUPU_FLINK_PLUGINS_DIR).stringType().defaultValue(null));if (StringUtils.isBlank(pluginsDir)) {pluginsDir System.getenv().getOrDefault(ConfigConstants.ENV_FLINK_PLUGINS_DIR,ConfigConstants.DEFAULT_FLINK_PLUGINS_DIRS);}File pluginsDirFile new File(pluginsDir);if (!pluginsDirFile.isDirectory()) {LOG.warn(The plugins directory [{}] does not exist., pluginsDirFile);return Optional.empty();}return Optional.of(pluginsDirFile);}}
http://www.ihoyoo.com/news/57473.html

相关文章:

  • 给别人做网站多少钱如何查看网站的建设方式
  • 东莞seo建站排名安徽建站之星
  • 建设一个货代网站想要多少钱已备案网站域名
  • 网站的数据运营怎么做怎么制作网站横幅教案
  • 移动端低代码开发平台番禺区网站优化
  • 淘宝网页版登录电脑版网站seo优化徐州百度网络
  • 手机端网站开发源码wordpress绝对路径图片不显示
  • 如何做网站结构及栏目策划徐州h5模板建站
  • 万宁网站建设公司公司网站制作公司
  • 沈阳电子商务网站建设用dw制作网站模板下载
  • 手机网站网页开发教程我想找一个电销外包团队
  • 专业设计素材网站wap是什么意思的缩写
  • 网站在哪里建立下列哪一项不属于电子商务网站建设
  • 响应式网站的研究意义英文网站优化
  • 怎么做原创动漫视频网站泉州专业建站品牌
  • 专业做二手房的网站有哪些江苏建设工程信息网官网入口
  • 网站建设和管理维护平台网站的建设需求
  • 网站开发 无形资产jsp网站开发工具
  • 专教做美食的网站数据库跟网站
  • 怎么建国外网站建立网站站点方法
  • asp.net 旅游网站开发做网站设计都做些什么
  • 开封做网站池州做网站公司
  • 企业通过门户网站做营销推广wordpress 主题后台
  • python网站开发 django教做世界美食的网站
  • 网站管理员的联系方式wordpress关联微信
  • 怎么评价一个网站设计做的好坏腾讯会议收费
  • 东莞市建设局网站_网站建设网站
  • 南通wap网站建设把网站提交给百度
  • 绿色风格 网站做交易网站
  • 公司做网站,要准备哪些素材口碑营销为什么越来越重要