hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruba borthakur (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-662) dfs -ls sometime prints "Found xxx items"; sometimes it does not print that string
Date Mon, 18 Dec 2006 08:11:22 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-662?page=comments#action_12459212 ] 
            
dhruba borthakur commented on HADOOP-662:
-----------------------------------------

I think the user was complaining that the output format was different in the case of of a
directory vs that of a file. When we do a ls -l of a directory, it prints "Found xx items".
When we do ls -l of a file, the "Found xxx items" is not printed. The user was asking that
both these formats be same. He was not tto concerned about what the exact format it.

I think the current format that we got is appropriate.

If we look at linux/unix ls command, it too prints out different format based on whether it
is a directory or a file.


> dfs -ls sometime prints "Found xxx items"; sometimes it does not print that string
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-662
>                 URL: http://issues.apache.org/jira/browse/HADOOP-662
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.7.2
>            Reporter: dhruba borthakur
>         Assigned To: Jiang Lei
>            Priority: Minor
>
> I get a different response from dfs -ls depending on whether or not the 
> ls contained a directory or a wildcard. The wild card misses the 
> response that tells me how many files.
> It did indeed cause a problem with my scripts. It was easy to filter 
> out. If it's a desired action to do it sometimes and others then that's 
> it's ok. It doesn't seem like this is really the intention so I pointed 
> it out. My script is now happy with both forms. I do really on the fact 
> that the 3 column of the output is the file size. Perhaps I shouldn't be 
> doing this but I am writing some automated scripts in python to drive 
> hadoop so it is useful to check file sizes. If you were to provide a 
> format string that would allow me to place the items in a specific 
> format then you would be free to change it, whenever, however, you wanted.
> -Richard

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message