Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.2-alpha, 3.0.0-alpha1
-
None
-
Reviewed
Description
I created a symlink using
... FileContext fc = FileContext.getFileContext(dst.fs.getUri()); for (PathData src : srcs) { fc.createSymlink(src.path, dst.path, false); }
After doing this to create a symlink /foo/too.txt -> /foo/hello.txt, I tried to hdfs fsck and got the following:
[adi@host01 ~]$ hdfs fsck / Connecting to namenode via http://host01:21070 FSCK started by adi (auth:SIMPLE) from /172.29.122.91 for path / at Fri Nov 16 15:59:18 PST 2012 FSCK ended at Fri Nov 16 15:59:18 PST 2012 in 3 milliseconds hdfs://host01:21020/foo/hello.txt Fsck on path '/' FAILED
It's very surprising that an unprivileged user can run code which so easily causes a fundamental administration tool to fail.
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-7905 Port FileContext symlinks to FileSystem
- Resolved
-
HADOOP-8040 Add symlink support to FileSystem
- Closed
-
HADOOP-6424 Port FsShell to FileContext
- Open