hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Archana T (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8625) count with -h option displays namespace quota in human readable format
Date Mon, 22 Jun 2015 05:44:00 GMT

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

Archana T commented on HDFS-8625:
---------------------------------

Thanks [~aw] for looking into this issue.
{quote}
If there's a bug here, it's that one billion, it should be displaying B and instead of G,
but that's pretty minor.
{quote}

When i test with below values i observe that it displays in G instead of B --
{noformat}
 ./hdfs dfsadmin -setQuota 1099511000 /dir123

 ./hdfs dfs -count -v -h -q /dir123
       QUOTA       REM_QUOTA     SPACE_QUOTA REM_SPACE_QUOTA    DIR_COUNT   FILE_COUNT   
   CONTENT_SIZE PATHNAME
       1.0 G           1.0 G            none             inf            1            0   
              0 /dir123

 ./hdfs dfsadmin -setQuota 1099511627776 /dir123

 ./hdfs dfs -count -v -h -q /dir123
       QUOTA       REM_QUOTA     SPACE_QUOTA REM_SPACE_QUOTA    DIR_COUNT   FILE_COUNT   
   CONTENT_SIZE PATHNAME
         1 T           1.0 T            none             inf            1            0   
              0 /dir123

{noformat}

> count with -h option displays namespace quota in human readable format
> ----------------------------------------------------------------------
>
>                 Key: HDFS-8625
>                 URL: https://issues.apache.org/jira/browse/HDFS-8625
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: Archana T
>            Assignee: Surendra Singh Lilhore
>         Attachments: HDFS-8625.patch
>
>
> When 'count' command is executed with '-h' option , namespace quota is displayed in human
readable format --
> Example :
> hdfs dfsadmin -setQuota {color:red}1048576{color} /test
> hdfs dfs -count -q -h -v /test
>        {color:red}QUOTA       REM_QUOTA{color}     SPACE_QUOTA REM_SPACE_QUOTA    DIR_COUNT
  FILE_COUNT       CONTENT_SIZE PATHNAME
>          {color:red}1 M           1.0 M{color}            none             inf      
     1            0                  0 /test
> QUOTA and REM_QUOTA shows 1 M (human readable format) which actually should give count
value 1048576



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message