hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhijit Bagri (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-3440) TaskRunner creates a symlink with name 'null' if a file is added to DistributedCache without fragment
Date Fri, 23 May 2008 15:19:55 GMT

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

Abhijit Bagri updated HADOOP-3440:
----------------------------------

    Description: 
When adding a file to DistributedCache by  either :

1. DistributedCache.addCacheArchive(URI, conf) with URI not defining fragment(e.g. not as
new URI("path#fragment") )
2. DistributedCache.addCacheFile(URI, conf)  with URI not defining fragment(e.g. not as new
URI("path#fragment") )
3. DistributedCache.addArchiveToClassPath(Path, conf) 

and one sets DistributedCache.createSymlink, TaskRunner creates a link with name 'null' in
the working directory. 

I think the behavior should be that if fragment is null then no sym link should be created,
adding in localizeCache() of DistributedCache the following
{code}
     boolean doSymlink = getSymlink(conf);
+    if(cache.getFragment() == null) {
+      doSymlink = false;
+    }
FileSystem fs = getFileSystem(cache, conf);
{code}
     




  was:
When adding a file to DistributedCache by  either :

1. DistributedCache.addCacheArchive(URI, conf) with URI not defining fragment(e.g. not as
new URI("path#fragment") )
2. DistributedCache.addCacheFile(URI, conf)  with URI not defining fragment(e.g. not as new
URI("path#fragment") )
3. DistributedCache.addArchiveToClassPath(Path, conf) 

and one sets DistributedCache.createSymlink, TaskRunner creates a link with name 'null' in
the working directory. 

I think the behavior should be that if fragment is null then no sym link should be created,
adding in localizeCache() of DistributedCache the following
{code}
     boolean doSymlink = getSymlink(conf);
+    if(cache.getFragment() == null) {
+      doSymlink = false;
+    }
{code}
     FileSystem fs = getFileSystem(cache, conf);





> TaskRunner creates a symlink with name 'null' if a file is added to DistributedCache
without fragment
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3440
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3440
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: mapred
>            Reporter: Abhijit Bagri
>            Priority: Minor
>
> When adding a file to DistributedCache by  either :
> 1. DistributedCache.addCacheArchive(URI, conf) with URI not defining fragment(e.g. not
as new URI("path#fragment") )
> 2. DistributedCache.addCacheFile(URI, conf)  with URI not defining fragment(e.g. not
as new URI("path#fragment") )
> 3. DistributedCache.addArchiveToClassPath(Path, conf) 
> and one sets DistributedCache.createSymlink, TaskRunner creates a link with name 'null'
in the working directory. 
> I think the behavior should be that if fragment is null then no sym link should be created,
adding in localizeCache() of DistributedCache the following
> {code}
>      boolean doSymlink = getSymlink(conf);
> +    if(cache.getFragment() == null) {
> +      doSymlink = false;
> +    }
> FileSystem fs = getFileSystem(cache, conf);
> {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