Help Center/ MapReduce Service/ FAQs/ Component Configurations/ How Do I Modify the HDFS Active/Standby Switchover Class?
Updated on 2025-10-23 GMT+08:00

How Do I Modify the HDFS Active/Standby Switchover Class?

If the org.apache.hadoop.hdfs.server.namenode.ha.AdaptiveFailoverProxyProvider class is unavailable when an MRS 3.x cluster connects to NameNodes using HDFS, the cause is that the HDFS active/standby switchover class of the cluster is configured improperly. To solve the problem, perform the following operations:

  • Method 1: Add the hadoop-plugins-xxx.jar package to the classpath or lib directory of your program.

    The hadoop-plugins-xxx.jar package is stored in the HDFS client directory, for example, $HADOOP_HOME/share/hadoop/common/lib/hadoop-plugins-xxx.jar.

  • Method 2: Change the following HDFS configuration item to the corresponding open source class:

    dfs.client.failover.proxy.provider.hacluster=org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider