[ 
https://issues.apache.org/jira/browse/WHIRR-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883409#action_12883409
 ] 

Jeff Hammerbacher commented on WHIRR-52:
----------------------------------------

Wow, seeing some potentially weird behavior from Rackspace.

In {{HadoopService.java}}, I've instrumented the system with my highly complex 
debugging tool:
{code}
    NodeMetadata node = Iterables.getOnlyElement(nodes);
    InetAddress namenodePublicAddress = 
Iterables.getOnlyElement(node.getPublicAddresses());
    System.out.println("NN: " + namenodePublicAddress);
    System.out.println("NN hostname: " + namenodePublicAddress.getHostName());
    InetAddress jobtrackerPublicAddress = 
Iterables.getOnlyElement(node.getPublicAddresses());
    System.out.println("JT: " + jobtrackerPublicAddress);
    System.out.println("JT hostname: " + jobtrackerPublicAddress.getHostName());
{code}

Here's the output:
{noformat}
NN: /184.106.196.148
NN hostname: 184-106-196-148.static.cloud-ips.com
JT: 184-106-196-148.static.cloud-ips.com/184.106.196.148
JT hostname: 184-106-196-148.static.cloud-ips.com
{noformat}

It seems that a call to {{.getHostName()}} is altering the state of the 
{{node}} object such that the second call to {{.getPublicAddresses()}} is 
different from the first. Perhaps that's known behavior, but I'm just recording 
my investigations here for posterity.

On the other hand, {{mapred.job.tracker}} is set using the {{.getHostName()}} 
call, and the result of that call seems constant and reasonable, so I'm not 
quite sure where things are going wrong. More sophisticated debugging awaits...

> Allow a Hadoop MapReduce job to be run against a Hadoop Service running on 
> Rackspace Cloud Servers
> --------------------------------------------------------------------------------------------------
>
>                 Key: WHIRR-52
>                 URL: https://issues.apache.org/jira/browse/WHIRR-52
>             Project: Whirr
>          Issue Type: Improvement
>          Components: service/hadoop
>            Reporter: Jeff Hammerbacher
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to