forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hms-tool: lookup master addresses config from master
The HMS check and fix tools currently use the master addresses configuration provided on the command line to validate and fix metadata in HMS table entries. This only works correctly if the administrator inputs the master addresses exactly as its configured on the masters. If the hostports are reordered or use a slightly different format which resolves to the same addresses, then metadata will be flagged as stale and rewritten unnecessarily. As an example, the administrator could pass 'localhost' as the master address if they ran it on the master node, but this wouldn't be appropriate to write into the HMS. This commit changes the handling so that the tools use the master addresses returned from the ConnectToCluster mechanism already present in the client, which should match the master addresses config of the master exactly. Change-Id: If170cebe6e5d7fa05fbd7faf18755aa57bdfeeec Reviewed-on: http://gerrit.cloudera.org:8080/11083 Tested-by: Kudu Jenkins Reviewed-by: Dan Burkert <[email protected]>
- Loading branch information
1 parent
f847726
commit b2c6428
Showing
6 changed files
with
55 additions
and
22 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