Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.23.0, 1.0.0, 2.0.0-alpha
-
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