Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8621

FileUtil.symLink fails if spaces in path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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);

        Attachments

        1. patch.txt
          0.7 kB
          Robert Fuller
        2. hadoop-8621.txt
          2 kB
          Robert Fuller

          Issue Links

            Activity

              People

              • Assignee:
                boky01 Andras Bokor
                Reporter:
                fullergalway Robert Fuller
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: