[ 
https://issues.apache.org/jira/browse/HDFS-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175745#comment-13175745
 ] 

Harsh J commented on HDFS-1314:
-------------------------------

Sho,

FileSystem instance underneath for HDFS operations is DistributedFileSystem, so 
it should be OK to use getDefaultBlockSize.

You even made the change in 
{{hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java}}
 that pertains to this. We should use it wherever is possible, and not repeat 
ourselves.
                
> dfs.block.size accepts only absolute value
> ------------------------------------------
>
>                 Key: HDFS-1314
>                 URL: https://issues.apache.org/jira/browse/HDFS-1314
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Karim Saadah
>            Assignee: Sho Shimauchi
>            Priority: Minor
>              Labels: newbie
>         Attachments: hdfs-1314.txt, hdfs-1314.txt
>
>
> Using "dfs.block.size=8388608" works 
> but "dfs.block.size=8mb" does not.
> Using "dfs.block.size=8mb" should throw some WARNING on NumberFormatException.
> (http://pastebin.corp.yahoo.com/56129)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to