kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject [1/3] kudu git commit: [docs] Added steps to update HMS after migrating to multiple Kudu masters
Date Thu, 18 Jan 2018 23:35:25 GMT
Repository: kudu
Updated Branches:
  refs/heads/master 918db2d66 -> 31a720fc3


[docs] Added steps to update HMS after migrating to multiple Kudu masters

Change-Id: Iab3999c9e581ed3591b220c08491cdae867c91db
Reviewed-on: http://gerrit.cloudera.org:8080/8948
Reviewed-by: Jean-Daniel Cryans <jdcryans@apache.org>
Tested-by: Jean-Daniel Cryans <jdcryans@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/ee58617c
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/ee58617c
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/ee58617c

Branch: refs/heads/master
Commit: ee58617c0cfd56340bbd6e4751ae82b9e441ca30
Parents: 918db2d
Author: Alex Rodoni <arodoni@cloudera.com>
Authored: Thu Jan 4 15:44:31 2018 -0800
Committer: Jean-Daniel Cryans <jdcryans@apache.org>
Committed: Thu Jan 18 23:33:20 2018 +0000

----------------------------------------------------------------------
 docs/administration.adoc | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/ee58617c/docs/administration.adoc
----------------------------------------------------------------------
diff --git a/docs/administration.adoc b/docs/administration.adoc
index 71d957f..b8f6361 100644
--- a/docs/administration.adoc
+++ b/docs/administration.adoc
@@ -258,6 +258,21 @@ $ kudu fs dump uuid --fs_wal_dir=/var/lib/kudu/master 2>/dev/null
 WARNING: Without DNS aliases it is not possible to recover from permanent master failures
without
 bringing the cluster down for maintenance, and as such, it is highly recommended.
 +
+. If you have Kudu tables that are accessed from Impala, you must update
+the master addresses in the Apache Hive Metastore (HMS) database.
+* If you set up the DNS aliases, run the following statement in `impala-shell`,
+replacing `master-1`, `master-2`, and `master-3` with your actual aliases.
++
+[source,sql]
+----
+ALTER TABLE table_name
+SET TBLPROPERTIES
+('kudu.master_addresses' = 'master-1,master-2,master-3');
+----
++
+* If you do not have DNS aliases set up, see Step #11 in the Performing
+the migration section for updating HMS.
++
 . Perform the following preparatory steps for each new master:
 * Choose an unused machine in the cluster. The master generates very little load so it can
be
   colocated with other data services or load-generating processes, though not with another
Kudu
@@ -361,6 +376,27 @@ hostname:: master's previously recorded hostname or alias
 port:: master's previously recorded RPC port number
 
 . Start all of the tablet servers.
+. If you have Kudu tables that are accessed from Impala and you didn't set up
+DNS aliases, update the HMS database manually in the underlying database that
+provides the storage for HMS.
+* The following is an example SQL statement you should run in the HMS database:
++
+[source,sql]
+----
+UPDATE TABLE_PARAMS
+SET PARAM_VALUE =
+  'master-1.example.com,master-2.example.com,master-3.example.com'
+WHERE PARAM_KEY = 'kudu.master_addresses' AND PARAM_VALUE = 'old-master';
+----
++
+* In `impala-shell`, run:
++
+[source,bash]
+----
+INVALIDATE METADATA;
+----
++
+
 
 Congratulations, the cluster has now been migrated to multiple masters! To verify that all
masters
 are working properly, consider performing the following sanity checks:


Mime
View raw message