Class YarnVersionInfo

java.lang.Object
org.apache.hadoop.util.VersionInfo
org.apache.hadoop.yarn.util.YarnVersionInfo

@Private @Unstable public class YarnVersionInfo extends org.apache.hadoop.util.VersionInfo
This class finds the package info for Yarn.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Get the branch on which this originated.
    static String
    Returns the buildVersion which includes version, revision, user and date.
    static String
    The date that YARN was compiled.
    static String
    Get the subversion revision number for the root directory
    static String
    Get the checksum of the source files from which YARN was built.
    static String
    Get the subversion URL for the root YARN directory.
    static String
    The user that compiled Yarn.
    static String
    Get the YARN version.
    static void
    main(String[] args)
     

    Methods inherited from class org.apache.hadoop.util.VersionInfo

    _getBranch, _getBuildVersion, _getCompilePlatform, _getDate, _getProtocVersion, _getRevision, _getSrcChecksum, _getUrl, _getUser, _getVersion, getCompilePlatform, getProtocVersion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • YarnVersionInfo

      protected YarnVersionInfo()
  • Method Details

    • getVersion

      public static String getVersion()
      Get the YARN version.
      Returns:
      the YARN version string, eg. "0.6.3-dev"
    • getRevision

      public static String getRevision()
      Get the subversion revision number for the root directory
      Returns:
      the revision number, eg. "451451"
    • getBranch

      public static String getBranch()
      Get the branch on which this originated.
      Returns:
      The branch name, e.g. "trunk" or "branches/branch-0.20"
    • getDate

      public static String getDate()
      The date that YARN was compiled.
      Returns:
      the compilation date in unix date format
    • getUser

      public static String getUser()
      The user that compiled Yarn.
      Returns:
      the username of the user
    • getUrl

      public static String getUrl()
      Get the subversion URL for the root YARN directory.
      Returns:
      URL for the root YARN directory.
    • getSrcChecksum

      public static String getSrcChecksum()
      Get the checksum of the source files from which YARN was built.
      Returns:
      srcChecksum.
    • getBuildVersion

      public static String getBuildVersion()
      Returns the buildVersion which includes version, revision, user and date.
      Returns:
      buildVersion.
    • main

      public static void main(String[] args)