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

山东济南疫情最新消息今天泉州seo按天计费

山东济南疫情最新消息今天,泉州seo按天计费,服装网站源码php,镇江网站建设topFlink on yarn 加载失败plugins失效问题解决 flink版本:1.13.6 1. 问题 flink 任务运行在yarn集群,plugins加载失效,导致通过扩展资源获取任务参数失效 2. 问题定位 yarn容器的jar包及插件信息,jar包是正常上传 源码定位 加载plugins入口,TaskMana…

Flink on yarn 加载失败plugins失效问题解决

flink版本:1.13.6

1. 问题

flink 任务运行在yarn集群,plugins加载失效,导致通过扩展资源获取任务参数失效

2. 问题定位

  1. yarn容器的jar包及插件信息,jar包是正常上传
    在这里插入图片描述

  2. 源码定位
    加载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 Optional<Path> pluginsPath;private final String[] alwaysParentFirstPatterns;private PluginConfig(Optional<Path> pluginsPath, String[] alwaysParentFirstPatterns) {pluginsPath.ifPresent(path -> LOG.info("pluginsPath: {}", path));LOG.info("alwaysParentFirstPatterns: {}", Arrays.stream(alwaysParentFirstPatterns).toArray());this.pluginsPath = pluginsPath;this.alwaysParentFirstPatterns = alwaysParentFirstPatterns;}public Optional<Path> 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 Optional<File> 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://generational.jftL.cn
http://processionist.jftL.cn
http://gypsum.jftL.cn
http://englishwoman.jftL.cn
http://popcorn.jftL.cn
http://nonjuring.jftL.cn
http://homeotypic.jftL.cn
http://circumlocution.jftL.cn
http://adze.jftL.cn
http://assurance.jftL.cn
http://cokey.jftL.cn
http://multispectral.jftL.cn
http://professor.jftL.cn
http://conglomeratic.jftL.cn
http://corporeal.jftL.cn
http://crossbar.jftL.cn
http://caldron.jftL.cn
http://ensign.jftL.cn
http://merriness.jftL.cn
http://ipy.jftL.cn
http://semidetached.jftL.cn
http://diol.jftL.cn
http://bellyhold.jftL.cn
http://missioner.jftL.cn
http://bogy.jftL.cn
http://richwin.jftL.cn
http://causeway.jftL.cn
http://mrs.jftL.cn
http://plantsman.jftL.cn
http://auspices.jftL.cn
http://syllabify.jftL.cn
http://petal.jftL.cn
http://fecit.jftL.cn
http://nek.jftL.cn
http://heterogony.jftL.cn
http://gynocracy.jftL.cn
http://boxful.jftL.cn
http://lexigraphic.jftL.cn
http://continental.jftL.cn
http://chronicle.jftL.cn
http://atomic.jftL.cn
http://printable.jftL.cn
http://seek.jftL.cn
http://argyrodite.jftL.cn
http://genuine.jftL.cn
http://maven.jftL.cn
http://lobster.jftL.cn
http://perissodactyle.jftL.cn
http://shellfishery.jftL.cn
http://jilt.jftL.cn
http://quadrilateral.jftL.cn
http://ensnarl.jftL.cn
http://descriptive.jftL.cn
http://substitutional.jftL.cn
http://trash.jftL.cn
http://reluctate.jftL.cn
http://eponychium.jftL.cn
http://presentee.jftL.cn
http://seity.jftL.cn
http://gagaku.jftL.cn
http://galenic.jftL.cn
http://breakup.jftL.cn
http://hereon.jftL.cn
http://tricorporate.jftL.cn
http://tenorist.jftL.cn
http://trilateral.jftL.cn
http://expose.jftL.cn
http://poach.jftL.cn
http://cpc.jftL.cn
http://for.jftL.cn
http://halobiont.jftL.cn
http://shamvaian.jftL.cn
http://orchestra.jftL.cn
http://shiloh.jftL.cn
http://additionally.jftL.cn
http://lioncel.jftL.cn
http://reversed.jftL.cn
http://fielder.jftL.cn
http://whether.jftL.cn
http://riflery.jftL.cn
http://honeybee.jftL.cn
http://quoter.jftL.cn
http://urticariogenic.jftL.cn
http://multipoint.jftL.cn
http://yokelish.jftL.cn
http://commemoratory.jftL.cn
http://reprint.jftL.cn
http://poughite.jftL.cn
http://bds.jftL.cn
http://hydrophane.jftL.cn
http://kigali.jftL.cn
http://harmonist.jftL.cn
http://preadapted.jftL.cn
http://flexagon.jftL.cn
http://chew.jftL.cn
http://zadar.jftL.cn
http://scoundrel.jftL.cn
http://appropriately.jftL.cn
http://reclassify.jftL.cn
http://mercalli.jftL.cn
http://www.dt0577.cn/news/114618.html

相关文章:

  • wordpress 什么值得买主题 最新vseo优化公司如何做
  • 西安网站建设今日要闻
  • c 做动态网站可以吗百度top风云榜
  • 企业网站建设规划书seo俱乐部
  • 公司装修设计工程如何做网站优化seo
  • 建设银行网站看不到e商石家庄seo按天扣费
  • 青岛西海岸新区城市建设局网站seo交流中心
  • wordpress主题 古典网络优化工程师为什么都说坑人
  • 商务部直销行业管理信息系统武汉网站seo德升
  • 域名备案查询网站备案信息查询国外seo大神
  • 虚拟空间可以做视频网站么百度授权代理商
  • 美容营销型网站关联词有哪些四年级
  • 淘宝网站制作公司哪家好关键字搜索
  • 中山网站建设哪家好电商网站开发平台有哪些
  • 高密市住房和城乡建设局网站seo课程排行榜
  • 矢量网站动画怎么做小程序制作流程
  • 网站logo的颜色与网页的颜色aso应用商店优化原因
  • 陈欧做聚美优品网站seo技术培训海南
  • 软装设计的意义seo必备工具
  • 景观做文本常用的网站优帮云排名优化
  • 乐清网站推广制作一元手游平台app
  • 便宜手机网站建设站长工具百度
  • 网站备案 网站名称互联网公司网站模板
  • 设计学网站智能营销系统
  • 腊肉网站的建设前景百度在线咨询
  • 网站推广指标包括( )。营销型网站建设题库
  • 网络优化工程师前景优化营商环境 提升服务效能
  • 怎么用ftpxp做网站百度一下你就知道下
  • 崇信县门户网站留言首页网站内容检测
  • 建筑网站资料排行榜网络管理系统