Update the Hive Metastore
Hortonworks Data Platform components configured for High Availability must use a NameService rather than a NameNode.
Hadoop administrators also often use the following procedure to update the Hive Metastore with the new URI for a node in a Hadoop cluster. For example, administrators sometimes rename an existing node as their cluster grows.
- Open a command prompt on the machine hosting the Hive Metastore.
- Set the
- Execute the following command to retrieve a list of URIs for the filesystem roots, including the location of the NameService:
hive --service metatool -listFSRoot
- Execute the following command with the -dryRun option to test your configuration change before implementing it:
hive --service metatool -updateLocation <nameservice-uri> <namenode-uri> - dryRun
- Execute the command again, this time without the -dryRun option:
hive --service metatool -updateLocation <nameservice-uri> <namenode-uri>