Package org.apache.hadoop.util
Class VersionInfo
java.lang.Object
org.apache.hadoop.util.VersionInfo
This class returns build information about Hadoop components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringprotected Stringprotected String_getDate()protected Stringprotected Stringprotected Stringprotected String_getUrl()protected String_getUser()protected Stringstatic StringGet the branch on which this originated.static StringReturns the buildVersion which includes version, revision, user and date.static StringReturns the OS platform used for the build.static StringgetDate()The date that Hadoop was compiled.static StringReturns the protoc version used for the build.static StringGet the Git commit hash of the repository when compiled.static StringGet the checksum of the source files from which Hadoop was built.static StringgetUrl()Get the URL for the Hadoop repository.static StringgetUser()The user that compiled Hadoop.static StringGet the Hadoop version.static void
-
Constructor Details
-
VersionInfo
-
-
Method Details
-
_getVersion
-
_getRevision
-
_getBranch
-
_getDate
-
_getUser
-
_getUrl
-
_getSrcChecksum
-
_getBuildVersion
-
_getProtocVersion
-
_getCompilePlatform
-
getVersion
Get the Hadoop version.- Returns:
- the Hadoop version string, eg. "0.6.3-dev"
-
getRevision
Get the Git commit hash of the repository when compiled.- Returns:
- the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"
-
getBranch
Get the branch on which this originated.- Returns:
- The branch name, e.g. "trunk" or "branches/branch-0.20"
-
getDate
The date that Hadoop was compiled.- Returns:
- the compilation date in unix date format
-
getUser
The user that compiled Hadoop.- Returns:
- the username of the user
-
getUrl
Get the URL for the Hadoop repository.- Returns:
- the URL of the Hadoop repository
-
getSrcChecksum
Get the checksum of the source files from which Hadoop was built.- Returns:
- the checksum of the source files
-
getBuildVersion
Returns the buildVersion which includes version, revision, user and date.- Returns:
- the buildVersion
-
getProtocVersion
Returns the protoc version used for the build.- Returns:
- the protoc version
-
getCompilePlatform
Returns the OS platform used for the build.- Returns:
- the OS platform
-
main
-