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 "Andras Bokor (JIRA)" <ji...@apache.org> on 2017/10/06 09:03:00 UTC

[jira] [Commented] (HADOOP-8621) FileUtil.symLink fails if spaces in path

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

Andras Bokor commented on HADOOP-8621:
--------------------------------------

HADOOP-8952 do the same change. It should not be an issue now.

> FileUtil.symLink fails if spaces in path
> ----------------------------------------
>
>                 Key: HADOOP-8621
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8621
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Robert Fuller
>            Assignee: Andras Bokor
>            Priority: Minor
>         Attachments: hadoop-8621.txt, patch.txt
>
>
> the 'ln -s' command fails in the current implementation if there is a space in the path for the target or linkname. A small change resolves the issue.
> String cmd = "ln -s " + target + " " + linkname;
> //Process p = Runtime.getRuntime().exec(cmd, null); //broken
> Process p = Runtime.getRuntime().exec(new String[]{"ln","-s",target,linkname}, null);



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org