Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6768959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:08:09+00:00 2026-05-26T15:08:09+00:00

I have a network with some weird (as I understand) DNS server which causes

  • 0

I have a network with some weird (as I understand) DNS server which causes Hadoop or HBase to malfunction.

It resolves my hostname to some address my machine doesn’t know about (i.e. there is no such interface).

Hadoop does work if I have following entries in /etc/hosts:

127.0.0.1     localhost
127.0.1.1     myhostname

If entry “127.0.1.1 myhostname” is not present uploading file to HDFS fails and complains that it can replicate the file only to 0 datanodes instead of 1.

But in this case HBase does not work: creating a table from HBase shell causes NotAllMetaRegionsOnlineException (caused actually by HMaster trying to bind to wrong address returned by DNS server for myhostname).

In other network, I am using following /etc/hosts:

127.0.0.1   localhost
192.168.1.1 myhostname

And both Hadoop and HBase work.
The problem is that in second network the address is dynamic and I can’t list it into /etc/hosts to override result returned by weird DNS.

Hadoop is run in pseudo-distributed mode. HBase also runs on single node.

Changing behavior of DNS server is not an option.
Changing “localhost” to 127.0.0.1 in hbase/conf/regionservers doesn’t change anything.

Can somebody suggest a way how can I override its behavior while retaining internet connection (I actually work at client’s machine through Teamviewer). Or some way to configure HBase (or Zookeeper it is managing) not to use hostname to determine address to bind?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:08:10+00:00Added an answer on May 26, 2026 at 3:08 pm

    Luckily, I’ve found the workaround to this DNS server problem.

    DNS server returned invalid address when queried by local hostname.
    HBase by default does reverse DNS lookup on local hostname to determine where to bind.
    Because the address returned by DNS server was invalid, HMaster wasn’t able to bind.

    Workaround:
    In hbase/conf/hbase-site.xml explicitly specify interfaces that will be used for master and regionserver:

    <configuration>
      <property>
        <name>hbase.master.dns.interface</name>
        <value>lo</value>
      </property>
      <property>
        <name>hbase.regionserver.dns.interface</name>
        <value>lo</value>
      </property>
    </configuration>
    

    In this case, I specified loopback interface (lo) to be used for both master and regionserver.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hava a thread in which I have an infinite loop, doing some network
I have a Flash-based (AC3) application which does some network activity. Is there any
I have lots(+2000) of GUIDs(in some network class) and my program must find one
Due to network or some other reasons, some sites do not have their css
I have to POST some parameters to a URL outside my network, and the
I have a link to some style sheet from the Yahoo Developer Network, this
I have to transfer some values to be used as commands over the network,
I'm debugging a network application. I have to simulate some of the data exchanged
I have a network software which uses UDP to communicate with other instances of
I have already created a windows service that monitors the network for some specific

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.