In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
TickTime=2000
InitLimit=10
SyncLimit=5
ClientPort=2181
DataDir=/home/tim/zkdata
Server.1=tim-dn1:2888:3888
Server.2=tim-dn2:2888:3888
Server.3=tim-dn3:2888:3888
Core-site.xml
Fs.defaultFS
Hdfs://mycluster
Hdfs-site.xml
Tim@tim-dn2:~/hadoop/etc/hadoop$ cat hdfs-site.xml
Dfs.replication
three
Dfs.nameservices
Mycluster
Dfs.ha.namenodes.mycluster
Nn1,nn2
Dfs.namenode.rpc-address.mycluster.nn1
Tim-nn:8020
Dfs.namenode.rpc-address.mycluster.nn2
Tim-2nn:8020
Dfs.namenode.http-address.mycluster.nn1
Tim-nn:50070
Dfs.namenode.http-address.mycluster.nn2
Tim-2nn:50070
Dfs.namenode.shared.edits.dir
Qjournal://tim-nn:8485;tim-2nn:8485/mycluster
Dfs.client.failover.proxy.provider.mycluster
Org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
Dfs.journalnode.edits.dir
/ home/tim/hadoop/journal
After stopping the hdfs cluster
Enable automatic disaster recovery hdfs-site dfs.ha.automatic-failover.enabled true
His specifies that the cluster should be set up for automatic failover. In your core-site.xml file, add:
Ha.zookeeper.quorum zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181
Tim@tim-dn2:~/hadoop/etc/hadoop$ nano core-site.xml
GNU nano 2.5.3 File: core-site.xml Modified
->
Fs.defaultFS
Hdfs://mycluster
Ha.zookeeper.quorum
Tim-dn1:2181,tim-dn2:2181,tim-dn3:2181
After starting the zk cluster
Tim@tim-nn:~$ hdfs zkfc-formatZK
Used to create a / hadoop-ha/mycluster directory in a zk cluster
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.