hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jian He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11509) change parsing sequence in GenericOptionsParser to parse -D parameters first
Date Mon, 26 Jan 2015 19:50:35 GMT

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

Jian He commented on HADOOP-11509:
----------------------------------

Patch looks good overall, 
one other thing noticed is that: 
if user first calls {{Path.getFileSystem(Configuration conf)}}, user gets an filesystem object;
The next time user invokes {{Path.getFileSystem(Configuration conf)}} again with a different
conf,  the returned filesystem object still uses the old conf.  

Should the API {{Path.getFileSystem(Configuration conf)}} be that the returned file system
object always apply the up-to-date conf ?  [~cnauroth], your opinion ?

> change parsing sequence in GenericOptionsParser to parse -D parameters first
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-11509
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11509
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Xuan Gong
>            Assignee: Xuan Gong
>         Attachments: HADOOP-11509.1.patch
>
>
> In GenericOptionsParser, we need to parse -D parameter first. In that case, the user
input parameter (through -D) can be set into configuration object earlier and used to process
other parameters.



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

Mime
View raw message