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

libhdfs should get the default block size from the server

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.23.0, 1.0.0, 2.0.0-alpha
    • 2.0.2-alpha
    • libhdfs
    • None
    • Incompatible change, Reviewed
    • libhdfs now uses the server block size configuration rather than the deprecated dfs.block.size client configuration.

    Description

      libhdfs uses the deprecated property dfs.block.size. It would be better for libhdfs to use the FileSystem#getDefaultBlockSize API instead.

      This API has two advantages:
      1. It uses the new, non-deprecated dfs.blocksize property
      2. It handles string escapes like 'M' for 'megabytes' etc. which can appear in dfs.blocksize and dfs.block.size

      Attachments

        1. HDFS-2727.001.patch
          9 kB
          Colin McCabe
        2. HDFS-2727.002.patch
          14 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            sho.shimauchi Sho Shimauchi
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: