Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2727

libhdfs should get the default block size from the server

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Colin Patrick McCabe
            Reporter:
            Sho Shimauchi
          • Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development