gpt4 book ai didi

org.apache.hadoop.yarn.api.records.YarnApplicationState.values()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 16:46:40 26 4
gpt4 key购买 nike

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

YarnApplicationState.values介绍

暂无

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-client

private String getAllValidApplicationStates() {
 StringBuilder sb = new StringBuilder();
 sb.append("The valid application state can be" + " one of the following: ");
 sb.append(ALLSTATES_OPTION + ",");
 for (YarnApplicationState appState : YarnApplicationState.values()) {
  sb.append(appState + ",");
 }
 String output = sb.toString();
 return output.substring(0, output.length() - 1);
}

代码示例来源:origin: io.hops/hadoop-yarn-client

private String getAllValidApplicationStates() {
 StringBuilder sb = new StringBuilder();
 sb.append("The valid application state can be" + " one of the following: ");
 sb.append(ALLSTATES_OPTION + ",");
 for (YarnApplicationState appState : YarnApplicationState.values()) {
  sb.append(appState + ",");
 }
 String output = sb.toString();
 return output.substring(0, output.length() - 1);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-client

private String getAllValidApplicationStates() {
 StringBuilder sb = new StringBuilder();
 sb.append("The valid application state can be" + " one of the following: ");
 sb.append(ALLSTATES_OPTION + ",");
 for (YarnApplicationState appState : YarnApplicationState.values()) {
  sb.append(appState + ",");
 }
 String output = sb.toString();
 return output.substring(0, output.length() - 1);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-client

private String getAllValidApplicationStates() {
 StringBuilder sb = new StringBuilder();
 sb.append("The valid application state can be" + " one of the following: ");
 sb.append(ALLSTATES_OPTION + ",");
 for (YarnApplicationState appState : YarnApplicationState.values()) {
  sb.append(appState + ",");
 }
 String output = sb.toString();
 return output.substring(0, output.length() - 1);
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

@Override
public synchronized void setApplicationStates(Set<String> applicationStates) {
 EnumSet<YarnApplicationState> appStates = null;
 for (YarnApplicationState state : YarnApplicationState.values()) {
  if (applicationStates.contains(
    StringUtils.toLowerCase(state.name()))) {
   if (appStates == null) {
    appStates = EnumSet.of(state);
   } else {
    appStates.add(state);
   }
  }
 }
 setApplicationStates(appStates);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common

@Override
public void setApplicationStates(Set<String> applicationStates) {
 EnumSet<YarnApplicationState> appStates = null;
 for (YarnApplicationState state : YarnApplicationState.values()) {
  if (applicationStates.contains(
    StringUtils.toLowerCase(state.name()))) {
   if (appStates == null) {
    appStates = EnumSet.of(state);
   } else {
    appStates.add(state);
   }
  }
 }
 setApplicationStates(appStates);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common

@Override
public void setApplicationStates(Set<String> applicationStates) {
 EnumSet<YarnApplicationState> appStates = null;
 for (YarnApplicationState state : YarnApplicationState.values()) {
  if (applicationStates.contains(
    StringUtils.toLowerCase(state.name()))) {
   if (appStates == null) {
    appStates = EnumSet.of(state);
   } else {
    appStates.add(state);
   }
  }
 }
 setApplicationStates(appStates);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-server-common

} catch (RuntimeException e) {
 YarnApplicationState[] stateArray =
   YarnApplicationState.values();
 String allAppStates = Arrays.toString(stateArray);
 throw new BadRequestException("Invalid application-state "

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

} catch (RuntimeException e) {
 YarnApplicationState[] stateArray =
   YarnApplicationState.values();
 String allAppStates = Arrays.toString(stateArray);
 throw new BadRequestException(

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

} catch (RuntimeException e) {
 YarnApplicationState[] stateArray =
   YarnApplicationState.values();
 String allAppStates = Arrays.toString(stateArray);
 throw new BadRequestException(

代码示例来源:origin: io.hops/hadoop-yarn-server-common

} catch (RuntimeException e) {
 YarnApplicationState[] stateArray =
   YarnApplicationState.values();
 String allAppStates = Arrays.toString(stateArray);
 throw new BadRequestException("Invalid application-state "

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-server-common

} catch (RuntimeException e) {
 YarnApplicationState[] stateArray =
   YarnApplicationState.values();
 String allAppStates = Arrays.toString(stateArray);
 throw new BadRequestException("Invalid application-state "

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-client

new OutputStreamWriter(sysout, Charset.forName("UTF-8")));
if (allAppStates) {
 for (YarnApplicationState appState : YarnApplicationState.values()) {
  appStates.add(appState);

代码示例来源:origin: io.hops/hadoop-yarn-client

new OutputStreamWriter(sysout, Charset.forName("UTF-8")));
if (allAppStates) {
 for (YarnApplicationState appState : YarnApplicationState.values()) {
  appStates.add(appState);

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-client

new OutputStreamWriter(sysout, Charset.forName("UTF-8")));
if (allAppStates) {
 for (YarnApplicationState appState : YarnApplicationState.values()) {
  appStates.add(appState);

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-client

new OutputStreamWriter(sysout, Charset.forName("UTF-8")));
if (allAppStates) {
 for (YarnApplicationState appState : YarnApplicationState.values()) {
  appStates.add(appState);

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

for (YarnApplicationState state : YarnApplicationState.values()) {
 states.add(StringUtils.toLowerCase(state.toString()));

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

ul();
subAppsList.li().__();
for (YarnApplicationState state : YarnApplicationState.values()) {
 subAppsList.
     li().a(url("apps", state.toString()), state.toString()).__();

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

@Override public void render(Block html) {
  UL<DIV<Hamlet>> mainList = html.
   div("#nav").
    h3("Cluster").
    ul().
     li().a(url("cluster"), "About")._().
     li().a(url("nodes"), "Nodes")._().
     li().a(url("nodelabels"), "Node Labels")._();
  UL<LI<UL<DIV<Hamlet>>>> subAppsList = mainList.
     li().a(url("apps"), "Applications").
      ul();
  subAppsList.li()._();
  for (YarnApplicationState state : YarnApplicationState.values()) {
   subAppsList.
       li().a(url("apps", state.toString()), state.toString())._();
  }
  subAppsList._()._();
  mainList.
     li().a(url("scheduler"), "Scheduler")._()._().
    h3("Tools").
    ul().
     li().a("/conf", "Configuration")._().
     li().a("/logs", "Local logs")._().
     li().a("/stacks", "Server stacks")._().
     li().a("/jmx?qry=Hadoop:*", "Server metrics")._()._()._();
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

@Override public void render(Block html) {
  UL<DIV<Hamlet>> mainList = html.
   div("#nav").
    h3("Cluster").
    ul().
     li().a(url("cluster"), "About")._().
     li().a(url("nodes"), "Nodes")._().
     li().a(url("nodelabels"), "Node Labels")._();
  UL<LI<UL<DIV<Hamlet>>>> subAppsList = mainList.
     li().a(url("apps"), "Applications").
      ul();
  subAppsList.li()._();
  for (YarnApplicationState state : YarnApplicationState.values()) {
   subAppsList.
       li().a(url("apps", state.toString()), state.toString())._();
  }
  subAppsList._()._();
  mainList.
     li().a(url("scheduler"), "Scheduler")._()._().
    h3("Tools").
    ul().
     li().a("/conf", "Configuration")._().
     li().a("/logs", "Local logs")._().
     li().a("/stacks", "Server stacks")._().
     li().a("/jmx?qry=Hadoop:*", "Server metrics")._()._()._();
 }
}

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