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

Extend Path with Path#toFile() and Path(File) to better support path cross-platform differences

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: fs
    • Labels:
      None
    • Target Version/s:

      Description

      In Hadoop, Path object is used to represent both local and remote (for example DFS) paths. In some scenarios, Path's path is passed on directly to the operating system shell. As seen in MAPREDUCE-4321, the path returned from the Path object is not necessary a valid shell path. By providing Path#toFile() and Path(File), we will provide means by which people can do the right thing if they follow certain rules. However, as noted in comments for MAPREDUCE-4321, this does not provide any guaranties that someone won't unknowingly do it wrong in the future, but it is still a step forward.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ivanmi Ivan Mitic
                Reporter:
                ivanmi Ivan Mitic
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: