[ 
https://issues.apache.org/jira/browse/MAPREDUCE-6090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14135542#comment-14135542
 ] 

Jason Lowe commented on MAPREDUCE-6090:
---------------------------------------

Thanks for the report and patch, Robert!  Rather than an explicit static block 
that replicates the logic in JobConf, it'd be cleaner if HSAdmin simply reused 
that logic by expecting a JobConf rather than a Configuration.  The constructor 
that takes a conf argument should expect a JobConf, and the main() method could 
construct the HSAdmin object with a JobConf rather than relying on ToolRunner 
to pass the conf.

> mapred hsadmin getGroups fails to connect in some cases
> -------------------------------------------------------
>
>                 Key: MAPREDUCE-6090
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6090
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 2.5.1
>            Reporter: Robert Kanter
>            Assignee: Robert Kanter
>         Attachments: MAPREDUCE-6090.patch
>
>
> If you do {{mapred hsadmin -getGroups}} it works fine (assuming 
> {{mapreduce.jobhistory.admin.address}} is set properly in mapred-site.xml).  
> But if you do {{mapred hsadmin -getGroups foo_user}}, it will keep retrying 
> to connect to localhost:
> {noformat}
> INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:10033. Already 
> tried 0 time(s); retry policy is 
> RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 
> MILLISECONDS)
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to