Home > other >  Hadoop2.8.5 structures, QJM HA cluster, the NameNode migration is not completely effective
Hadoop2.8.5 structures, QJM HA cluster, the NameNode migration is not completely effective

Time:09-17



Using hadoop2.8.5 jdk1.8 machine build QJM Centos7 HA cluster first close the Namenode, can switch to the second Namenode, but NN2 closed, NN1 or standby state, help you is what reason??????

[zoo. CFG)
 
# The number of milliseconds of each tick
TickTime=2000
# The number of ticks that The initial
# synchronization phase can take
InitLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
SyncLimit=5
# the directory where the snapshot is stored.
# do not use/TMP for storage,/TMP here is just
# example sakes.
DataDir=/home/zookeeper_data
# the port at which the clients will connect
ClientPort=2181
# the maximum number of client connections.
# happens this if you need to handle more clients
# maxClientCnxns=60
#
Info # read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
# autopurge. SnapRetainCount=3
# Purge task interval in pump
# Set to "0" to disable auto purge feature
# autopurge. PurgeInterval=1

Server. 1=node1:2888-3888
Server. 2=2:2888-3888
Server. 3=node3:2888-3888



Configuration file is as follows;

[hosts]
 
127.0.0.1 localhost localhost. Localdomain localhost4 localhost4. Localdomain4
. : : 1 localhost localhost. Localdomain localhost6 localhost6 localdomain6

192.168.81.211 node1
192.168.81.212 2
192.168.81.213 node3
192.168.81.214 node4
192.168.81.215 node5
192.168.81.216 node6




[hadoop - env. Sh]
 
Export JAVA_HOME=/home/weblogic/jdk1.8.0 _181


[the core - site. XML]
 


Fs. DefaultFS
HDFS://sxt


Hadoop. TMP. Dir
/home/hadoop_tmp & lt;/value>



Ha. The zookeeper. Quorum
Node1:2181, 2:2181, node3:2181 & lt;/value>





XML HDFS - site.
 


DFS. Nameservices
Sxt



DFS. Ha. Namenodes. Sxt
Nn1, nn2 & lt;/value>



DFS. The namenode. RPC - address. SXT. Nn1 & lt;/name>
Node1:8020 & lt;/value>


DFS. The namenode. RPC - address. SXT. Nn2 & lt;/name>
2:8020 & lt;/value>


DFS. The namenode. HTTP - address. SXT. Nn1 & lt;/name>
Node1:50070 & lt;/value>


DFS. The namenode. HTTP - address. SXT. Nn2 & lt;/name>
2:50070 & lt;/value>



DFS. The namenode. Shared. The edits. Dir
Qjournal://2:8485; Node3:8485; Node4:8485/sxt



DFS. Client. Failover. Proxy. Provider. Sxt
Org, apache hadoop. HDFS. Server. The namenode. Ha. ConfiguredFailoverProxyProvider





DFS. Ha. Fencing. Methods
Sshfence



DFS. Ha. Fencing, SSH private key - files
/root/. SSH/id_rsa & lt;/value>



Fs. DefaultFS
HDFS://sxt



DFS. Journalnode. Edits. Dir
/opt/journal/data




DFS. Ha. Automatic - failover. Enabled
true












(slaves)
 
2
Node3
Node4
  • Related