Configuring automatic failover

Add the following properties to hdfs-site.xml to configure automatic failover:

Property Value
dfs.ha.automatic-failover.enabled true
ha.zookeeper.quorum zk1:2181, zk2:2181, zk3:2181

Get Modern Big Data Processing with Hadoop now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.