Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13738

fsck -list-corruptfileblocks has infinite loop if user is not privileged.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0, 3.0.0
    • Fix Version/s: 3.2.0, 3.0.4, 3.1.2
    • Component/s: tools
    • Labels:
      None
    • Environment:

      Kerberized Hadoop cluster

      Description

      Found an interesting bug.
      Execute following command as any non-privileged user:

      # run fsck
      $ hdfs fsck / -list-corruptfileblocks
      
      FSCK ended at Mon Jul 16 15:14:03 PDT 2018 in 1 milliseconds
      Access denied for user systest. Superuser privilege is required
      Fsck on path '/' FAILED
      FSCK ended at Mon Jul 16 15:14:03 PDT 2018 in 0 milliseconds
      Access denied for user systest. Superuser privilege is required
      Fsck on path '/' FAILED
      FSCK ended at Mon Jul 16 15:14:03 PDT 2018 in 1 milliseconds
      Access denied for user systest. Superuser privilege is required
      Fsck on path '/' FAILED
      

      Reproducible on Hadoop 3.0.0 as well as 2.6.0

        Attachments

        1. HDFS-13738.003.patch
          2 kB
          Yuen-Kuei Hsueh
        2. HDFS-13738.002.patch
          2 kB
          Yuen-Kuei Hsueh
        3. HDFS-13738.001.patch
          0.8 kB
          Yuen-Kuei Hsueh
        4. HDFS-13738.test.patch
          1 kB
          Wei-Chiu Chuang

          Activity

            People

            • Assignee:
              study Yuen-Kuei Hsueh
              Reporter:
              weichiu Wei-Chiu Chuang
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: