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

FileUtil.symLink fails if spaces in path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • 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. hadoop-8621.txt
          2 kB
          Robert Fuller
        2. patch.txt
          0.7 kB
          Robert Fuller

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: