mirror of
https://github.com/apache/impala.git
synced 2025-12-19 09:58:28 -05:00
This patch adds support to display the HA status of catalog and statestore on the root web page. The status will be presented as "Catalog Status: Active" or "Statestore Status: Standby" based on the values retrieved from the metrics catalogd-server.active-status and statestore.active-status. If the catalog or statestore is standalone, it will show active as the status, which is same as the metric. Tests: Ran core tests. Manually tests the web page, and verified the status display is correct. Also checked the situation when the failover happens, the current 'standby' status can be changed to 'active'. Change-Id: Ie9435ba7a9549ea56f9d080a9315aecbcc630cd2 Reviewed-on: http://gerrit.cloudera.org:8080/21294 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
68 lines
2.1 KiB
Cheetah
68 lines
2.1 KiB
Cheetah
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, 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.
|
|
-->
|
|
{{! Template for / }}
|
|
{{>www/common-header.tmpl}}
|
|
{{?is_quiescing}}
|
|
<div class="alert alert-info" role="alert">
|
|
<h4>Shutdown in Progress</h4>
|
|
<p>
|
|
{{shutdown_status}}
|
|
</div>
|
|
{{/is_quiescing}}
|
|
|
|
{{?impala_server_mode}}
|
|
<h2>Impala Server Mode: {{?is_coordinator}}Coordinator{{?use_local_catalog}}
|
|
(Local Catalog Mode){{/use_local_catalog}}{{/is_coordinator}}
|
|
{{?is_executor}}Executor{{/is_executor}}</h2>
|
|
{{/impala_server_mode}}
|
|
|
|
{{?catalogd_active_status}}
|
|
<h2> Catalog Status: {{catalogd_active_status}} </h2>
|
|
{{/catalogd_active_status}}
|
|
|
|
{{?statestore_active_status}}
|
|
<h2> Statestore Status: {{statestore_active_status}} </h2>
|
|
{{/statestore_active_status}}
|
|
|
|
<h2>Vers<span id="v">i</span>on</h2>
|
|
<pre id="version_pre">{{version}}
|
|
Build Flags: {{#build_flags}}{{flag_name}}={{flag_value}} {{/build_flags}}</pre>
|
|
<!-- The space after {{flag_value}} is necessary to add a space between each flag when
|
|
this page is rendered -->
|
|
|
|
<h2>Process Start Time</h2>
|
|
<pre>{{process_start_time}}</pre>
|
|
|
|
<h2>Hardware Info</h2>
|
|
<pre>{{cpu_info}} {{mem_info}} {{disk_info}}</pre>
|
|
|
|
<h2>OS Info</h2>
|
|
<pre>{{os_info}}</pre>
|
|
|
|
<h2>Process Info</h2>
|
|
<pre>{{process_state_info}}</pre>
|
|
|
|
<h2>CGroup Info</h2>
|
|
<pre>{{cgroup_info}}</pre>
|
|
|
|
<h2>Other Info</h2>
|
|
<pre>Locale: {{effective_locale}}<br>GLIBC Version: {{glibc_version}}</pre>
|
|
|
|
{{>www/common-footer.tmpl}}
|