31
31
/**
32
32
* This class returns build information about Hadoop components.
33
33
*/
34
- @ InterfaceAudience .Private
35
- @ InterfaceStability .Unstable
34
+ @ InterfaceAudience .Public
35
+ @ InterfaceStability .Stable
36
36
public class VersionInfo {
37
37
private static final Log LOG = LogFactory .getLog (VersionInfo .class );
38
38
@@ -102,8 +102,8 @@ public static String getVersion() {
102
102
}
103
103
104
104
/**
105
- * Get the subversion revision number for the root directory
106
- * @return the revision number , eg. "451451 "
105
+ * Get the Git commit hash of the repository when compiled.
106
+ * @return the commit hash , eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a "
107
107
*/
108
108
public static String getRevision () {
109
109
return COMMON_VERSION_INFO ._getRevision ();
@@ -124,40 +124,43 @@ public static String getBranch() {
124
124
public static String getDate () {
125
125
return COMMON_VERSION_INFO ._getDate ();
126
126
}
127
-
127
+
128
128
/**
129
129
* The user that compiled Hadoop.
130
130
* @return the username of the user
131
131
*/
132
132
public static String getUser () {
133
133
return COMMON_VERSION_INFO ._getUser ();
134
134
}
135
-
135
+
136
136
/**
137
- * Get the subversion URL for the root Hadoop directory.
137
+ * Get the URL for the Hadoop repository.
138
+ * @return the URL of the Hadoop repository
138
139
*/
139
140
public static String getUrl () {
140
141
return COMMON_VERSION_INFO ._getUrl ();
141
142
}
142
143
143
144
/**
144
- * Get the checksum of the source files from which Hadoop was
145
- * built.
146
- ** /
145
+ * Get the checksum of the source files from which Hadoop was built.
146
+ * @return the checksum of the source files
147
+ */
147
148
public static String getSrcChecksum () {
148
149
return COMMON_VERSION_INFO ._getSrcChecksum ();
149
150
}
150
151
151
152
/**
152
- * Returns the buildVersion which includes version,
153
- * revision, user and date.
153
+ * Returns the buildVersion which includes version,
154
+ * revision, user and date.
155
+ * @return the buildVersion
154
156
*/
155
157
public static String getBuildVersion (){
156
158
return COMMON_VERSION_INFO ._getBuildVersion ();
157
159
}
158
160
159
161
/**
160
162
* Returns the protoc version used for the build.
163
+ * @return the protoc version
161
164
*/
162
165
public static String getProtocVersion (){
163
166
return COMMON_VERSION_INFO ._getProtocVersion ();
0 commit comments