mirror of
https://github.com/apache/impala.git
synced 2025-12-19 09:58:28 -05:00
The /events page of catalogd shows the metrics and status of the event-processor. This patch adds more info in this page, including - lag info - current event batch that's being processed See the screenshot attached in the JIRA for how it looks like. Also moves the error message to the top to highlight the error status. Fixes the issue of not updating latest event id when event processor is stopped. Also fixes the issue of error message not cleared after global INVALIDATE METADATA. Adds a debug action, catalogd_event_processing_delay, to inject a sleep while processing an event. So the web page can be captured more easily. Also adds a missing test for showing the error message of event-processing in the /events page. Tests: - Add e2e test to verify the content of the page. Change-Id: I2e7d4952c7fd04ae89b6751204499bf9dd99f57c Reviewed-on: http://gerrit.cloudera.org:8080/20986 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
90 lines
3.2 KiB
Cheetah
90 lines
3.2 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.
|
|
-->
|
|
{{> www/common-header.tmpl }}
|
|
{{^error}}
|
|
|
|
{{?event_processor_error_msg}}
|
|
<h3>Error Message</h3>
|
|
<pre>{{event_processor_error_msg}}</pre>
|
|
{{/event_processor_error_msg}}
|
|
|
|
<h3>Lag Info:</h3>
|
|
Lag time: {{progress-info.lag_time}}
|
|
<table class="table table-hover table-bordered">
|
|
<tr>
|
|
<th>
|
|
<th>Event ID</th>
|
|
<th>Event Timestamp (s)</th>
|
|
<th>Event Time</th>
|
|
</tr>
|
|
<tr>
|
|
<td>Last Synced Event</td>
|
|
<td>{{progress-info.last_synced_event_id}}</td>
|
|
<td>{{progress-info.last_synced_event_time_s}}</td>
|
|
<td>{{progress-info.last_synced_event_time}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Latest Event in Metastore</td>
|
|
<td>{{progress-info.latest_event_id}}</td>
|
|
<td>{{progress-info.latest_event_time_s}}</td>
|
|
<td>{{progress-info.latest_event_time}}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{{?progress-info.num_hms_events}}
|
|
<h3>Current Event Batch</h3>
|
|
<p>
|
|
Metastore Event Batch: {{progress-info.num_hms_events}} events.</br>
|
|
Event ID starts from {{progress-info.min_event_id}} to {{progress-info.max_event_id}}.</br>
|
|
Event time starts from {{progress-info.min_event_time}} to {{progress-info.max_event_time}}.</br>
|
|
After batching and filtering, there are {{progress-info.num_filtered_events}} events to be processed.
|
|
{{progress-info.num_synced_events}} ({{progress-info.synced_percent}}%) have been processed.</br>
|
|
Started processing the current batch at {{progress-info.start_time}} ({{progress-info.elapsed_time}} ago).</br>
|
|
Started processing the current event at {{progress-info.start_time_of_event}} ({{progress-info.elapsed_time_current_event}} ago).
|
|
</p>
|
|
<p>Current Metastore event being processed
|
|
{{?progress-info.current_event_batch_size}}
|
|
(a batch of {{progress-info.current_event_batch_size}} events on the same table)
|
|
{{/progress-info.current_event_batch_size}}
|
|
:</p>
|
|
<table class="table table-hover table-bordered">
|
|
<tr>
|
|
<th>Event ID</th>
|
|
<th>Event Time</th>
|
|
<th>Event Type</th>
|
|
<th>Catalog Name</th>
|
|
<th>Database Name</th>
|
|
<th>Table Name</th>
|
|
</tr>
|
|
<tr>
|
|
<td>{{progress-info.current_event.event_id}}</td>
|
|
<td>{{progress-info.current_event.event_time}}</td>
|
|
<td>{{progress-info.current_event.event_type}}</td>
|
|
<td>{{progress-info.current_event.cat_name}}</td>
|
|
<td>{{progress-info.current_event.db_name}}</td>
|
|
<td>{{progress-info.current_event.tbl_name}}</td>
|
|
</tr>
|
|
</table>
|
|
{{/progress-info.num_hms_events}}
|
|
|
|
<h3>Event Processor Summary</h3>
|
|
<pre>{{event_processor_metrics}}</pre>
|
|
|
|
{{> www/common-footer.tmpl }}
|