Skip to content

Commit 0d2242f

Browse files
committed
Resolve comments
1 parent 49f0d2b commit 0d2242f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,25 @@
502502
<value>org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager</value>
503503
</property>
504504

505+
<property>
506+
<name>dfs.namenode.edits.qjournals.resolution-enabled</name>
507+
<value>false</value>
508+
<description>
509+
Determines if the given qjournals address is a domain name which needs to
510+
be resolved.
511+
This is used by namenode to resolve qjournals.
512+
</description>
513+
</property>
514+
515+
<property>
516+
<name>dfs.namenode.edits.qjournals.resolver.impl</name>
517+
<value></value>
518+
<description>
519+
Qjournals resolver implementation used by namenode.
520+
Effective with dfs.namenode.edits.qjournals.resolution-enabled on.
521+
</description>
522+
</property>
523+
505524
<property>
506525
<name>dfs.permissions.enabled</name>
507526
<value>true</value>

hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSHighAvailabilityWithQJM.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,15 @@ The order in which you set these configurations is unimportant, but the values y
194194
<value>qjournal://node1.example.com:8485;node2.example.com:8485;node3.example.com:8485/mycluster</value>
195195
</property>
196196

197+
You can also configure journal nodes by setting up dns round-robin record to avoid hardcoded names:
198+
199+
<property>
200+
<name>dfs.namenode.edits.qjournals.resolution-enabled</name>
201+
<value>true</value>
202+
</property>
203+
204+
This will require you to configure multiple IPs behind one dns record on the host level, for example round robin DNS.
205+
197206
* **dfs.client.failover.proxy.provider.[nameservice ID]** - the Java class that HDFS clients use to contact the Active NameNode
198207

199208
Configure the name of the Java class which will be used by the DFS Client to

0 commit comments

Comments
 (0)