apache.hadoop.hbase.client.RetriesExhausted Exception: Failed setting up proxy interface

This error (apache.hadoop.hbase.client.RetriesExhaustedException: Failed setting up proxy interface) mainly occurs when you do not configure your hostname and IP address property in HBase configuration files. You should not use localhost as the hostname for any of the node, you must have a proper configuration with FQDN (fully qualified domain name).

There are few configurations which you need to validate before starting hbase. these configurations are as follows –

  1. open and check hosts file configuration in your environment. Go to the /etc/hosts location in ubuntu 
    hbase.client.RetriesExhaustedException: Failed setting up proxy interface-ease2code
  2. As you can see there is my machine IP address 192.168.1.204 which is mapped with ease2code, so make sure you bind the correct IP of your Machine with correct hostname.
  3. Note: if you find any mapping with 127.0.1.1 in your /etc/hosts file then remove this entry and save the file. Now restart all Hadoop and HBase services again.
  4. And if you are using an older version of that is Hadoop 1.0.3 then you need to remember that hadoop starts in safe mode automatically and does not communicate with HBase. So we need to come out from safe mode to normal mode. Use below command to leave safe mode in hadoop
    hadoop dfsadmin -safemode leave  
    hbase.client.RetriesExhaustedException: Failed setting up proxy interface-ease2code
  5. Check the configuration properties of hbase-site.xml file. Specify fully qualified domain name in rootdir property. It should be the same master name as defined in hdfs configuration file.

    Example of hbase-site.xml

    <configuration>
    <property>
    <name>hbase.rootdir</name>
    <value>hdfs://192.168.1.204:54310/hbase</value>
    </property>
    <property>
    <name>hbase.cluster.distributed</name>
    <value>false</value>
    </property>
    <property>
    <name>hbase.zookeeper.quorum</name>
    <value>192.168.1.204:2181</value>
    </property>
    </configuration>
    
  6. when your services are running on the different environment or multiple nodes, make sure that all your host and guests machines are reachable to each other. there must not any network or connectivity issues.
    • note – From guest machine try to ping host machine IP
      ping ‘host-machine-ip’
    • from host machine ping your guest machine IP
      ping ‘guest-machine-ip’

we are open for your suggestions because it can help us to improve a bit more. ww.ease2code.com

Speak Your Mind

*