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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0, 3.0.0
    • 3.2.0, 3.0.4, 3.1.2
    • tools
    • None
    • 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.test.patch
          1 kB
          Wei-Chiu Chuang
        2. HDFS-13738.001.patch
          0.8 kB
          Yuen-Kuei Hsueh
        3. HDFS-13738.002.patch
          2 kB
          Yuen-Kuei Hsueh
        4. HDFS-13738.003.patch
          2 kB
          Yuen-Kuei Hsueh

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: