Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How hadoop2.7 Cluster migrates namenode

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how the hadoop2.7 cluster migrates namenode. It is very detailed and has certain reference value. Friends who are interested must finish reading it.

My hadoop cluster is a 2.7.0 cluster.

Hadoop is machine-independent. If you migrate namenode, you can follow these steps.

1. Close all hadoop clusters, zookeeper, hive and hbase clusters, set hosts and ssh mutual trust, and adjust server time.

2. Copy the directory of hadoop and the corresponding data directory to the new namenode host, and keep the directory of the old and new host the same.

3. Modify the configuration file under $HADOOP_HOME/etc/hadoop/:

The hostname of namenode in core-site.xml, hdfs-site.xml, mapred-site.xml, master, slaves, yarn-site.xml and other files is changed to the hostname of the new host.

4. Make sure that all datanode nodes have also modified the configuration file in step 3.

5. Modify the configuration file zoo.cfg in zookeeper

6. Modify the configuration file hbase-site.xml in hbase

7. Modify the configuration file of hive, if there is any modification in zookeeper. At the same time, hive also needs to modify mysql's data records about namenode configuration information. Perform the following sql:

Update DBS set DB_LOCATION_URI=REPLACE (DB_LOCATION_URI,'old host','new host')

Update SDS set LOCATION=REPLACE (LOCATION,'old host','new host')

After starting hadoop, zookeeper, hbase, hive, check to see if the modification is successful.

These are all the contents of the article "how hadoop2.7 clusters migrate namenode". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report