hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Abdelnur (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-983) Adding -ll & -llr options to 'hadoop dfs', listing # replicas, block size, # of blocks and size
Date Tue, 06 Feb 2007 14:29:28 GMT
Adding -ll & -llr options to 'hadoop dfs', listing # replicas, block size, # of blocks
and size
-----------------------------------------------------------------------------------------------

                 Key: HADOOP-983
                 URL: https://issues.apache.org/jira/browse/HADOOP-983
             Project: Hadoop
          Issue Type: Improvement
          Components: dfs
    Affects Versions: 0.11.0
         Environment: All
            Reporter: Alejandro Abdelnur
            Priority: Minor


An 'ls' output currently is:

-----
noidea:~ tucu$ hadoop dfs -ls a 100000-5kb IN
Found 7 items
/user/tucu/a/output1-m-00000    <r 1>   330750
/user/tucu/a/output1-m-00001    <r 1>   351471
/user/tucu/a/output2-m-00000    <r 1>   523350
/user/tucu/a/output2-m-00001    <r 1>   506893
/user/tucu/a/output3-m-00000    <r 1>   684390
/user/tucu/a/output3-m-00001    <r 1>   687714
/user/tucu/a/part-00000 <r 1>   5235319
Found 2 items
/user/tucu/100000-5kb/part-00000        <r 1>   257950067
/user/tucu/100000-5kb/part-00001        <r 1>   257938957
Found 1 items
/user/tucu/IN/a.txt     <r 1>   2
-----

The new 'll' output is:

-----
noidea:~ tucu$ hadoop dfs -ll a 100000-5kb IN
Found 7 items
hdfs://localhost:9000/user/tucu/a:
output1-m-00000                <r  1> <bs  -   > <b    1>  322.99 k 
output1-m-00001                <r  1> <bs  -   > <b    1>  343.23 k 
output2-m-00000                <r  1> <bs  -   > <b    1>  511.08 k 
output2-m-00001                <r  1> <bs  -   > <b    1>  495.01 k 
output3-m-00000                <r  1> <bs  -   > <b    1>  668.34 k 
output3-m-00001                <r  1> <bs  -   > <b    1>  671.59 k 
part-00000                     <r  1> <bs  -   > <b    1>    4.99 MB
Found 2 items
hdfs://localhost:9000/user/tucu/100000-5kb:
part-00000                     <r  1> <bs 64 MB> <b    4>  246.00 MB
part-00001                     <r  1> <bs 64 MB> <b    4>  245.98 MB
Found 1 items
hdfs://localhost:9000/user/tucu/IN:
a.txt                          <r  1> <bs  -   > <b    1>       2   
-----

Where <bs ##> is the block size ( - if the file is 1 block or less) and <b ###>
is the number of blocks the file has. 

The size is converted to the closest unit and the path of the file is display header style.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message