Skip to content

Commit

Permalink
Revert "HBASE-27066 The Region Visualizer display failed (apache#4472)"
Browse files Browse the repository at this point in the history
This reverts commit a400a66.
  • Loading branch information
wenwj0 authored Jun 14, 2022
1 parent 806a7ee commit cca1733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
</section>
<section>
<h2><a name="region_visualizer"></a>Region Visualizer</h2>
<& RegionVisualizerTmpl; master = master &>
<& RegionVisualizerTmpl &>
</section>
<section>
<h2><a name="peers">Peers</a></h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</%doc>
<%args>
HMaster master;
</%args>
<%import>
org.apache.hadoop.hbase.master.HMaster;
org.apache.hadoop.hbase.ServerName;
org.apache.hbase.thirdparty.com.google.common.base.Preconditions;
</%import>

<%java>
ServerName active_master = master.getActiveMaster().orElse(null);
Preconditions.checkState(active_master != null, "Failed to retrieve active master's ServerName!");
String activeHostname = active_master.getHostname();
int activeInfoPort = master.getActiveMasterInfoPort();
</%java>

<script type="text/javascript" src="/static/js/vega@5.19.1.min.js"></script>
<script type="text/javascript" src="/static/js/vega-lite@5.0.0.min.js"></script>
Expand All @@ -44,7 +29,7 @@ int activeInfoPort = master.getActiveMasterInfoPort();
description: 'Total `storefileSize` per Region Server',
data: {
name: 'region_info',
url: 'http://<% activeHostname %>:<% activeInfoPort %>/api/v1/admin/cluster_metrics/live_servers',
url: 'http://localhost:16010/api/v1/admin/cluster_metrics/live_servers',
format: { type: 'json', property: 'data' }
},
transform: [
Expand Down

0 comments on commit cca1733

Please sign in to comment.