HBASE-12390 Change revision style from svn to git

This commit is contained in:
Enis Soztutar 2014-10-31 11:10:38 -07:00
parent cacdb89e03
commit 997c1adc2f
5 changed files with 18 additions and 8 deletions

View File

@ -93,7 +93,7 @@ public class VersionInfo {
static String[] versionReport() {
return new String[] {
"HBase " + getVersion(),
"Source code repository " + getUrl() + " -r " + getRevision(),
"Source code repository " + getUrl() + " revision=" + getRevision(),
"Compiled by " + getUser() + " on " + getDate(),
"From source with checksum " + getSrcChecksum()
};

View File

@ -86,7 +86,7 @@ String listenPort = conf.get("hbase.rest.port", "8080");
</tr>
<tr>
<td>HBase Version</td>
<td><%= VersionInfo.getVersion() %>, r<%= VersionInfo.getRevision() %></td>
<td><%= VersionInfo.getVersion() %>, revision=<%= VersionInfo.getRevision() %></td>
<td>HBase version and revision</td>
</tr>
<tr>

View File

@ -225,7 +225,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
</tr>
<tr>
<td>HBase Version</td>
<td><% org.apache.hadoop.hbase.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.hbase.util.VersionInfo.getRevision() %></td><td>HBase version and revision</td>
<td><% org.apache.hadoop.hbase.util.VersionInfo.getVersion() %>, revision=<% org.apache.hadoop.hbase.util.VersionInfo.getRevision() %></td><td>HBase version and revision</td>
</tr>
<tr>
<td>HBase Compiled</td>
@ -239,7 +239,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
</tr>
<tr>
<td>Hadoop Version</td>
<td><% org.apache.hadoop.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.util.VersionInfo.getRevision() %></td>
<td><% org.apache.hadoop.util.VersionInfo.getVersion() %>, revision=<% org.apache.hadoop.util.VersionInfo.getRevision() %></td>
<td>Hadoop version and revision</td>
</tr>
<tr>

View File

@ -132,7 +132,7 @@ org.apache.hadoop.hbase.zookeeper.MasterAddressTracker;
</tr>
<tr>
<td>HBase Version</td>
<td><% org.apache.hadoop.hbase.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.hbase.util.VersionInfo.getRevision() %></td>
<td><% org.apache.hadoop.hbase.util.VersionInfo.getVersion() %>, revision=<% org.apache.hadoop.hbase.util.VersionInfo.getRevision() %></td>
<td>HBase version and revision</td>
</tr>
<tr>
@ -145,6 +145,16 @@ org.apache.hadoop.hbase.zookeeper.MasterAddressTracker;
<td><% org.apache.hadoop.util.VersionInfo.getSrcChecksum() %></td>
<td>HBase source MD5 checksum</td>
</tr>
<tr>
<td>Hadoop Version</td>
<td><% org.apache.hadoop.util.VersionInfo.getVersion() %>, revision=<% org.apache.hadoop.util.VersionInfo.getRevision() %></td>
<td>Hadoop version and revision</td>
</tr>
<tr>
<td>Hadoop Compiled</td>
<td><% org.apache.hadoop.util.VersionInfo.getDate() %>, <% org.apache.hadoop.util.VersionInfo.getUser() %></td>
<td>When Hadoop version was compiled and by whom</td>
</tr>
<tr>
<td>Zookeeper Quorum</td>
<td><% regionServer.getZooKeeper().getQuorum() %></td>

View File

@ -40,8 +40,8 @@ public abstract class StateDumpServlet extends HttpServlet {
VersionInfo.writeTo(out);
out.println("Hadoop " + org.apache.hadoop.util.VersionInfo.getVersion());
out.println("Subversion " + org.apache.hadoop.util.VersionInfo.getUrl() + " -r " +
org.apache.hadoop.util.VersionInfo.getRevision());
out.println("Source code repository " + org.apache.hadoop.util.VersionInfo.getUrl()
+ " revision=" + org.apache.hadoop.util.VersionInfo.getRevision());
out.println("Compiled by " + org.apache.hadoop.util.VersionInfo.getUser() +
" on " + org.apache.hadoop.util.VersionInfo.getDate());
}