Ivan Mitic created HADOOP-8493: ---------------------------------- Summary: Extend Path with Path#toFile() and Path(File) to better support path cross-platform differences Key: HADOOP-8493 URL: https://issues.apache.org/jira/browse/HADOOP-8493 Project: Hadoop Common Issue Type: Bug Components: fs Reporter: Ivan Mitic Assignee: Ivan Mitic Priority: Minor
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|https://issues.apache.org/jira/browse/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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira