httpfs error Operation category READ is not supported in state standby

后端 未结 1 1731
再見小時候
再見小時候 2020-12-29 13:32

I am working on hadoop apache 2.7.1 and I have a cluster that consists of 3 nodes

nn1
nn2
dn1

nn1 is the dfs.default.name, so it is the master name n

1条回答
  •  醉酒成梦
    2020-12-29 13:52

    It looks like HttpFs is not High Availability aware yet. This could be due to the missing configurations required for the Clients to connect with the current Active Namenode.

    Ensure the fs.defaultFS property in core-site.xml is configured with the correct nameservice ID.

    If you have the below in hdfs-site.xml

    
      dfs.nameservices
      mycluster
    
    

    then in core-site.xml, it should be

    
      fs.defaultFS
      hdfs://mycluster
    
    

    Also configure the name of the Java class which will be used by the DFS Client to determine which NameNode is the currently Active and is serving client requests.

    Add this property to hdfs-site.xml

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

    Restart the Namenodes and HttpFs after adding the properties in all nodes.

    0 讨论(0)
提交回复
热议问题