hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4416) class names in Configuration are not resolved if the configuration value has a white space
Date Fri, 24 Oct 2008 14:57:44 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642477#action_12642477
] 

Steve Loughran commented on HADOOP-4416:
----------------------------------------

Patch looks good. Reviewing the trim() method, I think it could be made simpler by explicitly
returning null for a null argument
{code}
protected String trim(String source) { 
 return source==null ? null : source.trim(); 
}
{code}

> class names in Configuration are not resolved if the configuration value has a white
space 
> -------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4416
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4416
>             Project: Hadoop Core
>          Issue Type: Bug
>         Environment: all
>            Reporter: Alejandro Abdelnur
>            Assignee: Abhijit Bagri
>         Attachments: HADOOP-4416-v2.patch, HADOOP-4416-v3.patch, HADOOP-4416.patch
>
>
> If an entry in the configuration used for a class contains spaces or enters before or
after the {{getClass}} and {{getClasses}} methods fail to resolve the class.
> For example:
> {code}
>     <property>
>         <name>mapred.mapper.class</name>
>         <value>
>           com.foo.MyMapper
>         </value>
>     </property>
> {code}

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


Mime
View raw message