Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > DNS name resolving

DNS name resolving
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 20, 2011, 05:24 PM
 
I have following two errors from my application
Could not resolve the DNS name of unknowne4ce8f3898fc
hostname can't be null

-Jignesh
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 20, 2011, 05:27 PM
 
My etc/hosts file looks as follows
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Online
Reply With Quote
Oct 20, 2011, 05:34 PM
 
An app you wrote, or somebody else's app?

I'm not sure exactly how you want us to help, unknowne4ce8f3898fc is indeed an invalid hostname.
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 20, 2011, 06:15 PM
 
I am trying to run the hadoop app, which was running perfectly fine till yesterday night.
Here is the output today of todays log file. As you can see one piece of recognizes the IP address.
EBUG org.apache.hadoop.hbase.master.handler.OpenedRegio nHandler: Opened region -ROOT-,,0.70236052 on 192.168.1.120,49235,1319134727150
2011-10-20 14:19:04,846 ERROR org.apache.hadoop.hbase.HServerAddress: Could not resolve the DNS name of unknowne4ce8f3898fc
2011-10-20 14:19:04,847 FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Starting shutdown.
java.lang.IllegalArgumentException: hostname can't be null
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Online
Reply With Quote
Oct 20, 2011, 06:19 PM
 
The first log entry just means it was able to contact a DNS root server.

You are going to need to contact the hadoop list about this, probably. I have no idea why it is trying to do lookups of invalid hostnames. My guess is either a misconfiguration or a bug.
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 20, 2011, 09:41 PM
 
Thanks but looks like something wrong with my machine not with hadoop. When I open the terminal I see following

unknowne4ce8f3898fc:~ hadoop-user$ pwd
/Users/hadoop-user
unknowne4ce8f3898fc:~ hadoop-user$

Why would terminal prompt shows me unknowne4ce8f3898fc.

Please help to fix this.
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 20, 2011, 10:44 PM
 
Surprisingly when I look at Web Sharing I got following message.

Your personal website, in the Sites folder in your home folder, is available at this address http://unknowne4ce8f3898fc/~jignesh/

And when I click on the link I am able to open folder by name Jignesh.

Same is applicable for remote login.
To login to this computer remotely type
ssh jignesh@unknowne4ce8f3898fc

For the remote management:On
other users can manage your computer using the address unknowne4ce8f3898fc

While my Computer name is Jignesh MacBookPro

Looks like while configuring ssh, proper name is not given and that is the problem. How to fix this? And even I fix this, does this screw up my ssh setup?

-Jignesh
     
Mac Elite
Join Date: Dec 2003
Location: I'll let you know when I get there...
Status: Offline
Reply With Quote
Oct 20, 2011, 10:51 PM
 
Sounds like your computer's hostname is borked...

sudo scutil --get ComputerName
sudo scutil --get HostName
sudo scutil --get LocalHostName

Try running these commands, I'm guessing at least one of them will return the "unknowne4ce8f3898fc"
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Online
Reply With Quote
Oct 21, 2011, 12:25 AM
 
Try simply "hostname" too...
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 21, 2011, 10:20 AM
 
Here is what I got

Jignesh-MacBookPro:~ jignesh$ sudo scutil --get ComputerName
Jignesh MacBookPro
Jignesh-MacBookPro:~ jignesh$ sudo scutil --get HostName
HostName: not set
Jignesh-MacBookPro:~ jignesh$ sudo scutil --get LocalHostName
Jignesh-MacBookPro
Jignesh-MacBookPro:~ jignesh$ sudo hostname
Jignesh-MacBookPro.local
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 21, 2011, 02:25 PM
 
Originally Posted by jigneshmpatel View Post
Thanks but looks like something wrong with my machine not with hadoop. When I open the terminal I see following

unknowne4ce8f3898fc:~ hadoop-user$ pwd
/Users/hadoop-user
unknowne4ce8f3898fc:~ hadoop-user$

Why would terminal prompt shows me unknowne4ce8f3898fc.

Please help to fix this.
Seems my terminal prompt is fixed now

Jignesh-MacBookPro:hadoop-hbase hadoop-user$

But I still have same problem in my connection-
Could not resolve the DNS name of unknowne4ce8f3898fc

how to get rid of this unknowing domain name.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Online
Reply With Quote
Oct 21, 2011, 06:26 PM
 
Have you looked for a mailing list or IRC channel for hadoop?
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 21, 2011, 07:20 PM
 
Ok now I am back to home and terminal prompt is changed again it shows "unknowne4ce8f3898fc'
but when I am in office it shows "Jignesh-MacBookPro.local"

Why would the computer or prompt name keep changing. I should have only one name. I think I need to fix this one earliest, then will go back to check why Hadoop maintains old name.

Please guide me.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Online
Reply With Quote
Oct 21, 2011, 07:55 PM
 
What appears in your terminal prompt is the reverse DNS entry of your hostname. Where there is no RDNS entry your hostname is determined in other ways.

For some reason your terminal thinks that your hostname is being changed to unknowne4ce8f3898fc.
     
Mac Elite
Join Date: Dec 2003
Location: I'll let you know when I get there...
Status: Offline
Reply With Quote
Oct 21, 2011, 08:11 PM
 
If it's changing based on where you connect your computer, it's probably coming from your router. See if your router is assigning a host name.
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 21, 2011, 08:39 PM
 
I have DSL modem from AT &T. Don't know how to explore it. Can you provide any link to explore further.

-Jignesh
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 21, 2011, 08:49 PM
 
Can I change something so my computer's jignesh-macbook.pro.local remains as it is forever,
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Online
Reply With Quote
Oct 22, 2011, 12:00 AM
 
What are you trying to do? What makes you think that the hostname recognized by the terminal is any sort of problem? You might be spinning your tires with this...
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 22, 2011, 01:39 PM
 
The terminal prompt shows "jignesh-macbook.pro.local" which is what I expect always
but when I am in my home network then the prompt shows "unknowne4ce8f3898fc".
     
Fresh-Faced Recruit
Join Date: Oct 2011
Status: Offline
Reply With Quote
Oct 22, 2011, 01:40 PM
 
And "unknowne4ce8f3898fc" changes my machine name it makes the hadoop application stops working as it finds different name.

-Jignesh
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 01:23 PM.
All contents of these forums © 1995-2014 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2014, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2