gpt4 book ai didi

org.apache.hadoop.yarn.util.YarnVersionInfo.getUser()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 11:24:40 28 4
gpt4 key购买 nike

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

YarnVersionInfo.getUser介绍

[英]The user that compiled Yarn.
[中]编辑纱线的用户。

代码示例

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

public static void main(String[] args) {
  LOG.debug("version: "+ getVersion());
  System.out.println("Yarn " + getVersion());
  System.out.println("Subversion " + getUrl() + " -r " + getRevision());
  System.out.println("Compiled by " + getUser() + " on " + getDate());
  System.out.println("From source with checksum " + getSrcChecksum());
 }
}

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

public static void main(String[] args) {
  LOG.debug("version: "+ getVersion());
  System.out.println("Yarn " + getVersion());
  System.out.println("Subversion " + getUrl() + " -r " + getRevision());
  System.out.println("Compiled by " + getUser() + " on " + getDate());
  System.out.println("From source with checksum " + getSrcChecksum());
 }
}

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

public static void main(String[] args) {
  LOG.debug("version: "+ getVersion());
  System.out.println("YARN " + getVersion());
  System.out.println("Subversion " + getUrl() + " -r " + getRevision());
  System.out.println("Compiled by " + getUser() + " on " + getDate());
  System.out.println("From source with checksum " + getSrcChecksum());
 }
}

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

/**
  * Test the yarn version info routines.
  * @throws IOException
  */
 @Test
 public void versionInfoGenerated() throws IOException {

  // can't easily know what the correct values are going to be so just
  // make sure they aren't Unknown
  assertTrue("getVersion returned Unknown", !YarnVersionInfo.getVersion().equals("Unknown"));
  assertTrue("getUser returned Unknown", !YarnVersionInfo.getUser().equals("Unknown"));
  assertTrue("getUrl returned Unknown", !YarnVersionInfo.getUrl().equals("Unknown"));
  assertTrue("getSrcChecksum returned Unknown", !YarnVersionInfo.getSrcChecksum().equals("Unknown"));

  // these could be Unknown if the VersionInfo generated from code not in svn or git
  // so just check that they return something
  assertNotNull("getRevision returned null", YarnVersionInfo.getRevision());
  assertNotNull("getBranch returned null", YarnVersionInfo.getBranch());

  assertTrue("getBuildVersion check doesn't contain: source checksum",
        YarnVersionInfo.getBuildVersion().contains("source checksum"));

 }
}

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

/**
  * Test the yarn version info routines.
  * @throws IOException
  */
 @Test
 public void versionInfoGenerated() throws IOException {

  // can't easily know what the correct values are going to be so just
  // make sure they aren't Unknown
  assertTrue("getVersion returned Unknown", !YarnVersionInfo.getVersion().equals("Unknown"));
  assertTrue("getUser returned Unknown", !YarnVersionInfo.getUser().equals("Unknown"));
  assertTrue("getUrl returned Unknown", !YarnVersionInfo.getUrl().equals("Unknown"));
  assertTrue("getSrcChecksum returned Unknown", !YarnVersionInfo.getSrcChecksum().equals("Unknown"));

  // these could be Unknown if the VersionInfo generated from code not in svn or git
  // so just check that they return something
  assertNotNull("getRevision returned null", YarnVersionInfo.getRevision());
  assertNotNull("getBranch returned null", YarnVersionInfo.getBranch());

  assertTrue("getBuildVersion check doesn't contain: source checksum",
        YarnVersionInfo.getBuildVersion().contains("source checksum"));

 }
}

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

/**
  * Test the yarn version info routines.
  * @throws IOException
  */
 @Test
 public void versionInfoGenerated() throws IOException {

  // can't easily know what the correct values are going to be so just
  // make sure they aren't Unknown
  assertNotEquals("getVersion returned Unknown",
    "Unknown", YarnVersionInfo.getVersion());
  assertNotEquals("getUser returned Unknown",
    "Unknown", YarnVersionInfo.getUser());
  assertNotEquals("getSrcChecksum returned Unknown",
    "Unknown", YarnVersionInfo.getSrcChecksum());

  // these could be Unknown if the VersionInfo generated from code not in svn or git
  // so just check that they return something
  assertNotNull("getUrl returned null", YarnVersionInfo.getUrl());
  assertNotNull("getRevision returned null", YarnVersionInfo.getRevision());
  assertNotNull("getBranch returned null", YarnVersionInfo.getBranch());

  assertTrue("getBuildVersion check doesn't contain: source checksum",
        YarnVersionInfo.getBuildVersion().contains("source checksum"));

 }
}

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