Created 03-01-2016 07:29 AM
Hi Team,
What are the steps to move hive server and its metadata from one node to another node in hdp cluster?
Created on 03-01-2016 07:33 AM - edited 08-18-2019 04:26 AM
Created on 03-01-2016 07:33 AM - edited 08-18-2019 04:26 AM
Created on 03-01-2016 07:41 AM - edited 08-18-2019 04:25 AM
Metastore move @Nilesh
Created 03-01-2016 07:42 AM
how to do manually? In absence of Ambari
Created 03-01-2016 08:02 AM
You can add 2nd HS2 https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-HowtoSt...
Hive metastore
Backup and restore
Created 03-01-2016 01:23 PM
At present, I have hdp 2.3 cluster. Hive,mysql,hue and metastore installed on namenode.
All these are available incuding mysql and hive metadata (copied from namenode) on one of the datanode from cluster for redundancy purpose of hive.
Now when namenode server goes down then how can i link new host to hive metadata which i have copied.?
How can i do this via ambari as well as without ambari?
Created 03-01-2016 07:30 PM
What you are asking is Hive High Availability, you will need to set it up:
http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hadoop-ha/content/ch_HA-Hive.html
From best practices it is a bad idea to put any master service on data (slave) node. Use another master node to place HA components like hive, resource manager etc.
Created 03-01-2016 05:17 PM
To get the metastore to use the moved MySQL database you need to change the JDBC URL in the hive-site.xml file on the machine running the metastore. The correct configuration value to change is "javax.jdo.option.ConnectionURL". You will have to restart the metastore after changing this. If you are using HiveServer2 you will need to make this change on that machine as well.
To get your clients to find the new metastore instance you will have to change the thrift URI for the metastore, again in the hive-site.xml file. This will need to be done on all clients that talk to the metastore. The config value to change is "hive.metastore.uris".
Created 03-03-2016 07:09 AM
This is continued from previous post: I have made required changes in hive-site.xml on datanode, but when i restarted hive service from ambari changes are not reflecting in hive-site.xml it takes previous working configuration.