gpt4 book ai didi

org.apache.flink.runtime.jobmanager.ZooKeeperSubmittedJobGraphStore.jobIdfromPath()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 01:43:31 26 4
gpt4 key购买 nike

本文整理了Java中org.apache.flink.runtime.jobmanager.ZooKeeperSubmittedJobGraphStore.jobIdfromPath()方法的一些代码示例,展示了ZooKeeperSubmittedJobGraphStore.jobIdfromPath()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperSubmittedJobGraphStore.jobIdfromPath()方法的具体详情如下:
包路径:org.apache.flink.runtime.jobmanager.ZooKeeperSubmittedJobGraphStore
类名称:ZooKeeperSubmittedJobGraphStore
方法名:jobIdfromPath

ZooKeeperSubmittedJobGraphStore.jobIdfromPath介绍

[英]Returns the JobID from the given path in ZooKeeper.
[中]返回ZooKeeper中给定路径的作业ID。

代码示例

代码示例来源:origin: org.apache.flink/flink-runtime

@Override
public Collection<JobID> getJobIds() throws Exception {
  Collection<String> paths;
  LOG.debug("Retrieving all stored job ids from ZooKeeper under {}.", zooKeeperFullBasePath);
  try {
    paths = jobGraphsInZooKeeper.getAllPaths();
  } catch (Exception e) {
    throw new Exception("Failed to retrieve entry paths from ZooKeeperStateHandleStore.", e);
  }
  List<JobID> jobIds = new ArrayList<>(paths.size());
  for (String path : paths) {
    try {
      jobIds.add(jobIdfromPath(path));
    } catch (Exception exception) {
      LOG.warn("Could not parse job id from {}. This indicates a malformed path.", path, exception);
    }
  }
  return jobIds;
}

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

@Override
public Collection<JobID> getJobIds() throws Exception {
  Collection<String> paths;
  LOG.debug("Retrieving all stored job ids from ZooKeeper under {}.", zooKeeperFullBasePath);
  try {
    paths = jobGraphsInZooKeeper.getAllPaths();
  } catch (Exception e) {
    throw new Exception("Failed to retrieve entry paths from ZooKeeperStateHandleStore.", e);
  }
  List<JobID> jobIds = new ArrayList<>(paths.size());
  for (String path : paths) {
    try {
      jobIds.add(jobIdfromPath(path));
    } catch (Exception exception) {
      LOG.warn("Could not parse job id from {}. This indicates a malformed path.", path, exception);
    }
  }
  return jobIds;
}

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

@Override
public Collection<JobID> getJobIds() throws Exception {
  Collection<String> paths;
  LOG.debug("Retrieving all stored job ids from ZooKeeper under {}.", zooKeeperFullBasePath);
  try {
    paths = jobGraphsInZooKeeper.getAllPaths();
  } catch (Exception e) {
    throw new Exception("Failed to retrieve entry paths from ZooKeeperStateHandleStore.", e);
  }
  List<JobID> jobIds = new ArrayList<>(paths.size());
  for (String path : paths) {
    try {
      jobIds.add(jobIdfromPath(path));
    } catch (Exception exception) {
      LOG.warn("Could not parse job id from {}. This indicates a malformed path.", path, exception);
    }
  }
  return jobIds;
}

代码示例来源:origin: com.alibaba.blink/flink-runtime

@Override
public Collection<JobID> getJobIds() throws Exception {
  Collection<String> paths;
  LOG.debug("Retrieving all stored job ids from ZooKeeper under {}.", zooKeeperFullBasePath);
  try {
    paths = jobGraphsInZooKeeper.getAllPaths();
  } catch (Exception e) {
    throw new Exception("Failed to retrieve entry paths from ZooKeeperStateHandleStore.", e);
  }
  List<JobID> jobIds = new ArrayList<>(paths.size());
  for (String path : paths) {
    try {
      jobIds.add(jobIdfromPath(path));
    } catch (Exception exception) {
      LOG.warn("Could not parse job id from {}. This indicates a malformed path.", path, exception);
    }
  }
  return jobIds;
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com