The Error Info as follows:
The codes are as follows:
-
hbase-server/src/main/java/org/apache/hadoop/hbase/client/VersionInfoUtil.java
- hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon
- hbase-server/src/main/resources/hbase-webapps/master/rsgroup.jsp
I just modify the value of "if statement" left side as follows:
RegionServerListTmpl.jamon
<%java>
int totalRegions = 0;
int totalRequestsPerSecond = 0;
int inconsistentNodeNum = 0;
String masterVersion = VersionInfo.getVersion();
String[] apacheVersions = masterVersion.split("[/.-]");
if(apacheVersions.length > 3){
masterVersion = apacheVersions[0]+"."+apacheVersions[1]+"."+apacheVersions[2];
}
for (ServerName serverName: serverNames) {
…
rsgroup.jsp
<% int totalRegions = 0;
int totalRequests = 0;
int inconsistentNodeNum = 0;
String masterVersion = VersionInfo.getVersion();
String[] apacheVersions = masterVersion.split("[/.-]");
if(apacheVersions.length > 3){
masterVersion = apacheVersions[0]+"."+apacheVersions[1]+"."+apacheVersions[2];
}
for (Address server: rsGroupServers) {
…
替换hbase-server-2.0.2.3.1.0.0-78.jar, 位置
/usr/hdp/3.1.0.0-78/hbase/lib/hbase-server-2.0.2.3.1.0.0-78.jar
so, the ui:
原创文章,作者:kepupublish,如若转载,请注明出处:https://blog.ytso.com/tech/opensource/196060.html