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 "zhihai xu (JIRA)" <ji...@apache.org> on 2014/09/12 21:15:36 UTC

[jira] [Created] (HADOOP-11089) change "-tokenCacheFile" option to support non-local FS URIs.

zhihai xu created HADOOP-11089:
----------------------------------

             Summary: 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: util
            Reporter: zhihai xu
            Assignee: zhihai xu


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)