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

libhdfs should get the default block size from the server

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.0, 1.0.0, 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: libhdfs
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      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.002.patch
          14 kB
          Colin P. McCabe
        2. HDFS-2727.001.patch
          9 kB
          Colin P. McCabe

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: