hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Isaacson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-4205) fsck fails with symlinks
Date Sat, 17 Nov 2012 00:55:12 GMT
Andy Isaacson created HDFS-4205:

             Summary: fsck fails with symlinks
                 Key: HDFS-4205
                 URL: https://issues.apache.org/jira/browse/HDFS-4205
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs client
    Affects Versions: 2.0.2-alpha, 3.0.0
            Reporter: Andy Isaacson

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 / for path / at Fri Nov 16 15:59:18 PST
FSCK ended at Fri Nov 16 15:59:18 PST 2012 in 3 milliseconds

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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message