Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.23.3, 3.0.0-alpha1
-
None
-
None
Description
Path converts "\" into "/", probably for windows support? This means it's impossible for the user to escape metachars in a path name. Glob expansion can have deadly results.
Here are the most egregious examples. A user accidentally creates a path like "/user/me/*/file". Now they want to remove it.
"hadoop fs -rmr -skipTrash '/user/me/\*'" becomes... "hadoop fs -rmr -skipTrash /user/me/*"
- User/Admin: Nuked their home directory or any given directory
"hadoop fs -rmr -skipTrash '\*'" becomes... "hadoop fs -rmr -skipTrash /*"
- User: Deleted everything they have access to on the cluster
- Admin: Nukes the entire cluster
Note: FsShell is shown for illustrative purposes, however the problem is in the Path object, not FsShell.
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-8079 Proposal for enhancements to Hadoop for Windows Server and Windows Azure development and runtime environments
- Resolved