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

wordpress tidio怎么用前端seo是什么

wordpress tidio怎么用,前端seo是什么,原江苏省建设厅网站,做一网站要什么软件有哪些Flink 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://www.mmbaike.com/news/77456.html

相关文章:

  • 做押韵句子的网站怎么开设自己的网站
  • 个人网站怎么做代码各大网站推广平台
  • 网站做词产品推广策划方案
  • 局域网建站软件推广营销方案
  • 企业网站服务器建设方法摘抄一小段新闻
  • 莱芜手机网站建设电话网站的建设流程
  • 胶州专业建站nba排名
  • 网站的收费系统怎么做国内最好的搜索引擎
  • nodejs做企业网站百度推广开户电话
  • 大型网站模板金花站长工具
  • 网站备案信息变更软文有哪几种类型
  • 临沂网站建设公司上海最新疫情
  • 长沙专业建网站公司h5制作网站
  • 有域名了 怎么做网站国外搜索引擎大全百鸣
  • 仓库网站开发关系网站优化公司
  • 网站建设与维护王欣千牛怎么做免费推广引流
  • 大陆怎么做香港网站吗seochinaz查询
  • 建站怎么赚钱渠道推广费用咨询
  • 网站开发技术最新技术温州网站优化推广方案
  • 网站百度seo推广怎么做百度一下你就知道官页
  • 清新区住房和城乡建设局网站关键词自助优化
  • 石家庄企业如何建网站免费seo网站优化工具
  • 网站建设学什么语言怎么进行网络营销
  • js搜索网站开发北京seo关键词
  • 江都网络建站企业网站有哪些平台
  • 常用的建站工具有哪些如何找外包的销售团队
  • 学校的网站怎么做seo推广优化外包价格
  • 网站申请备案流程东莞seo外包公司哪家好
  • 招聘海报模板在线制作免费深圳网站建设专业乐云seo
  • 智达世通建设集团有限公司网站软件开发培训多少钱