hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhihai xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11089) change "-tokenCacheFile" option to support non-local FS URIs.
Date Fri, 08 May 2015 06:54:02 GMT

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

zhihai xu commented on HADOOP-11089:
------------------------------------

Updated the patch based on the latest code.

> change "-tokenCacheFile" option to support non-local FS URIs.
> -------------------------------------------------------------
>
>                 Key: HADOOP-11089
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11089
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security, util
>    Affects Versions: 2.5.0
>            Reporter: zhihai xu
>            Assignee: zhihai xu
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-11089.000.patch
>
>
> change "-tokenCacheFile" option to support non-local FS URIs.
> The current code in GenericOptionsParser only support local FS URIs, It will be better
to support non-local FS URIs. 
> {code}
>     FileSystem localFs = FileSystem.getLocal(conf);
>       Path p = localFs.makeQualified(new Path(fileName));
>       if (!localFs.exists(p)) {
>           throw new FileNotFoundException("File "+fileName+" does not exist.");
>       }
> {code}
> We can change above code to
> {code}
>     FileSystem localFs = FileSystem.getLocal(conf);
>       Path p = localFs.makeQualified(new Path(fileName));
>       if (!p.getFileSystem(conf).exists(p)) {
>           throw new FileNotFoundException("File "+fileName+" does not exist.");
>       }
> {code}
> This issue will depend on MAPREDUCE-6086.



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

Mime
View raw message