-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IMPALA-12785: Add commands to control event-processor status
This patch extends the existing AdminFnStmt to support operations on EventProcessor. E.g. to pause the EventProcessor: impala-shell> :event_processor('pause'); to resume the EventProcessor: impala-shell> :event_processor('start'); Or to resume the EventProcessor on a given event id (1000): impala-shell> :event_processor('start', 1000); Admin can also resume the EventProcessor at the latest event id by using -1: impala-shell> :event_processor('start', -1); Supported command actions in this patch: pause, start, status. The command output of all actions will show the latest status of EventProcessor, including - EventProcessor status: PAUSED / ACTIVE / ERROR / NEEDS_INVALIDATE / STOPPED / DISABLED. - LastSyncedEventId: The last HMS event id which we have synced to. - LatestEventId: The event id of the latest event in HMS. Example output: [localhost:21050] default> :event_processor('pause'); +--------------------------------------------------------------------------------+ | summary | +--------------------------------------------------------------------------------+ | EventProcessor status: PAUSED. LastSyncedEventId: 34489. LatestEventId: 34489. | +--------------------------------------------------------------------------------+ Fetched 1 row(s) in 0.01s If authorization is enabled, only admin users that have ALL privilege on SERVER can run this command. Note that there is a restriction in MetastoreEventsProcessor#start(long) that resuming EventProcessor back to a previous event id is only allowed when it's not in the ACTIVE state. This patch aims to expose the control of EventProcessor to the users so MetastoreEventsProcessor is not changed. We can investigate the restriction and see if we want to relax it. Note that resuming EventProcessor at a newer event id can be done on any states. Admins can use this to manually resolve the lag of HMS event processing, after they have made sure all (or important) tables are manually invalidated/refreshed. A new catalogd RPC, SetEventProcessorStatus, is added for coordinators to control the status of EventProcessor. Tests - Added e2e tests Change-Id: I5a19f67264cfe06a1819a22c0c4f0cf174c9b958 Reviewed-on: http://gerrit.cloudera.org:8080/22250 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]>
- Loading branch information
1 parent
c5b474d
commit 2e59bba
Showing
15 changed files
with
341 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.