chmod fails on Windows+cygwin
-----------------------------

                 Key: HDFS-569
                 URL: https://issues.apache.org/jira/browse/HDFS-569
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs client
            Reporter: Kohsuke Kawaguchi
         Attachments: HDFS-569.diff

When run on Windows + cygwin, chmod fails because it fails to call 
{{makeShellPath}} on the parameter.
The strack trace with 0.19.1 below:

{noformat}
org.apache.hadoop.util.Shell$ExitCodeException: chmod: changing permissions of 
`C:\\files\\hudson\\hadoop\\task-tracker\\taskTracker\\jobcache\\job_200908191713_0008\\job.xml':
 No such file or directory

        at org.apache.hadoop.util.Shell.runCommand(Shell.java:195)
        at org.apache.hadoop.util.Shell.run(Shell.java:134)
        at 
org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:286)
        at org.apache.hadoop.util.Shell.execCommand(Shell.java:338)
        at 
org.apache.hadoop.fs.RawLocalFileSystem.execCommand(RawLocalFileSystem.java:540)
        at 
org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:532)
        at 
org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:274)
        at 
org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:364)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:487)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:468)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:375)
        at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:208)
        at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:142)
        at org.apache.hadoop.fs.FileSystem.copyToLocalFile(FileSystem.java:1214)
        at org.apache.hadoop.fs.FileSystem.copyToLocalFile(FileSystem.java:1195)
        at 
org.apache.hadoop.mapred.TaskTracker.localizeJob(TaskTracker.java:750)
        at 
org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:1656)
        at 
org.apache.hadoop.mapred.TaskTracker.access$1200(TaskTracker.java:102)
        at 
org.apache.hadoop.mapred.TaskTracker$TaskLauncher.run(TaskTracker.java:1621)
{noformat}

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

Reply via email to