You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Tsuyoshi OZAWA (JIRA)" <ji...@apache.org> on 2013/09/06 10:08:52 UTC

[jira] [Updated] (HADOOP-9869) Configuration.getSocketAddr() should use getTrimmed()

     [ https://issues.apache.org/jira/browse/HADOOP-9869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsuyoshi OZAWA updated HADOOP-9869:
-----------------------------------

    Attachment: HADOOP-9869.1.patch

Fix Configuration.getSocketAddr() to use getTrimmed().

Both getEnum() and getPattern() don't set String, so they don't have a need to be trimmed.
                
>  Configuration.getSocketAddr() should use getTrimmed()
> ------------------------------------------------------
>
>                 Key: HADOOP-9869
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9869
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: conf
>    Affects Versions: 3.0.0, 2.1.0-beta, 1.3.0
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HADOOP-9869.1.patch
>
>
> YARN-1059 has shown that the hostname:port string used for the address of things like the RM isn't trimmed before its parsed, leading to errors that aren't that obvious. 
> We should trim it -it's clearly not going to break any existing (valid) configurations

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira