Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (2)
avatar

Configuring a separate service RPC port can improve the responsiveness of the NameNode by allowing DataNode and client requests to be processed via separate RPC queues.

Adding a service RPC port to an HA cluster with automatic failover via ZKFCs requires a workaround step.

The steps to configure a service RPC port are as follows:

  1. Add the following settings to hdfs-site.xml.
  <property>
    <name>dfs.namenode.servicerpc-address.mycluster.nn1</name>
    <value>nn1.example.com:8040</value>
  </property>

  <property>
    <name>dfs.namenode.servicerpc-address.mycluster.nn2</name>
    <value>nn2.example.com:8040</value>
  </property>

2. Restart NameNodes.

3. Stop the ZKFC processes on both NameNodes

4. Run the following command to reset the ZKFC state in ZooKeeper

hdfs zkfc -formatZK

Without this step you will see the following exception after ZKFC restart.

java.lang.RuntimeException: Mismatched address stored in ZK for NameNode

5. Restart the ZKFCs.

3,475 Views
Version history
Last update:
‎09-16-2022 01:32 AM
Updated by:
Contributors