Re: ls command output format
Filed HADOOP-4719 for this. Nicholas Sze. - Original Message From: Tsz Wo (Nicholas), Sze [EMAIL PROTECTED] To: core-user@hadoop.apache.org Sent: Friday, November 21, 2008 7:54:27 AM Subject: Re: ls command output format Hi Alex, Yes, the doc about ls is out-dated. Thanks for pointing this out. Would you mind to file a JIRA? Nicholas Sze - Original Message From: Alexander Aristov To: core-user@hadoop.apache.org Sent: Friday, November 21, 2008 6:08:08 AM Subject: Re: ls command output format Found out that output has been changed in 0.18 see HADOOP-2865 Docs should be also then updated. Alex 2008/11/21 Alexander Aristov Hello I wonder if hadoop shell command ls has changed output format Trying hadoop-0.18.2 I got next output [root]# hadoop fs -ls / Found 2 items drwxr-xr-x - root supergroup 0 2008-11-21 08:08 /mnt drwxr-xr-x - root supergroup 0 2008-11-21 08:19 /repos Though according to docs it should be that file name goes first. http://hadoop.apache.org/core/docs/r0.18.2/hdfs_shell.html#ls Usage: hadoop fs -ls For a file returns stat on the file with the following format: filename filesize modification_date modification_time permissions userid groupid For a directory it returns list of its direct children as in unix. A directory is listed as: dirname modification_time modification_time permissions userid groupid Example: hadoop fs -ls /user/hadoop/file1 /user/hadoop/file2 hdfs:// nn.example.com/user/hadoop/dir1 /nonexistentfile Exit Code: Returns 0 on success and -1 on error. I wouldn't notice the issue if I haven't had scripts which rely on the formatting. -- Best Regards Alexander Aristov -- Best Regards Alexander Aristov
Re: ls command output format
Thanks for creating it. I haven't tried Jira yet and didn't know how to do this. Alex 2008/11/25 Tsz Wo Sze [EMAIL PROTECTED] Filed HADOOP-4719 for this. Nicholas Sze. - Original Message From: Tsz Wo (Nicholas), Sze [EMAIL PROTECTED] To: core-user@hadoop.apache.org Sent: Friday, November 21, 2008 7:54:27 AM Subject: Re: ls command output format Hi Alex, Yes, the doc about ls is out-dated. Thanks for pointing this out. Would you mind to file a JIRA? Nicholas Sze - Original Message From: Alexander Aristov To: core-user@hadoop.apache.org Sent: Friday, November 21, 2008 6:08:08 AM Subject: Re: ls command output format Found out that output has been changed in 0.18 see HADOOP-2865 Docs should be also then updated. Alex 2008/11/21 Alexander Aristov Hello I wonder if hadoop shell command ls has changed output format Trying hadoop-0.18.2 I got next output [root]# hadoop fs -ls / Found 2 items drwxr-xr-x - root supergroup 0 2008-11-21 08:08 /mnt drwxr-xr-x - root supergroup 0 2008-11-21 08:19 /repos Though according to docs it should be that file name goes first. http://hadoop.apache.org/core/docs/r0.18.2/hdfs_shell.html#ls Usage: hadoop fs -ls For a file returns stat on the file with the following format: filename filesize modification_date modification_time permissions userid groupid For a directory it returns list of its direct children as in unix. A directory is listed as: dirname modification_time modification_time permissions userid groupid Example: hadoop fs -ls /user/hadoop/file1 /user/hadoop/file2 hdfs:// nn.example.com/user/hadoop/dir1 /nonexistentfile Exit Code: Returns 0 on success and -1 on error. I wouldn't notice the issue if I haven't had scripts which rely on the formatting. -- Best Regards Alexander Aristov -- Best Regards Alexander Aristov -- Best Regards Alexander Aristov
ls command output format
Hello I wonder if hadoop shell command ls has changed output format Trying hadoop-0.18.2 I got next output [root]# hadoop fs -ls / Found 2 items drwxr-xr-x - root supergroup 0 2008-11-21 08:08 /mnt drwxr-xr-x - root supergroup 0 2008-11-21 08:19 /repos Though according to docs it should be that file name goes first. http://hadoop.apache.org/core/docs/r0.18.2/hdfs_shell.html#ls Usage: hadoop fs -ls args For a file returns stat on the file with the following format: filename number of replicas filesize modification_date modification_time permissions userid groupid For a directory it returns list of its direct children as in unix. A directory is listed as: dirname dir modification_time modification_time permissions userid groupid Example: hadoop fs -ls /user/hadoop/file1 /user/hadoop/file2 hdfs:// nn.example.com/user/hadoop/dir1 /nonexistentfile Exit Code: Returns 0 on success and -1 on error. I wouldn't notice the issue if I haven't had scripts which rely on the formatting. -- Best Regards Alexander Aristov
Re: ls command output format
Hi Alex, Yes, the doc about ls is out-dated. Thanks for pointing this out. Would you mind to file a JIRA? Nicholas Sze - Original Message From: Alexander Aristov [EMAIL PROTECTED] To: core-user@hadoop.apache.org Sent: Friday, November 21, 2008 6:08:08 AM Subject: Re: ls command output format Found out that output has been changed in 0.18 see HADOOP-2865 Docs should be also then updated. Alex 2008/11/21 Alexander Aristov Hello I wonder if hadoop shell command ls has changed output format Trying hadoop-0.18.2 I got next output [root]# hadoop fs -ls / Found 2 items drwxr-xr-x - root supergroup 0 2008-11-21 08:08 /mnt drwxr-xr-x - root supergroup 0 2008-11-21 08:19 /repos Though according to docs it should be that file name goes first. http://hadoop.apache.org/core/docs/r0.18.2/hdfs_shell.html#ls Usage: hadoop fs -ls For a file returns stat on the file with the following format: filename filesize modification_date modification_time permissions userid groupid For a directory it returns list of its direct children as in unix. A directory is listed as: dirname modification_time modification_time permissions userid groupid Example: hadoop fs -ls /user/hadoop/file1 /user/hadoop/file2 hdfs:// nn.example.com/user/hadoop/dir1 /nonexistentfile Exit Code: Returns 0 on success and -1 on error. I wouldn't notice the issue if I haven't had scripts which rely on the formatting. -- Best Regards Alexander Aristov -- Best Regards Alexander Aristov
Re: ls command output format
On 11/21/08 6:03 AM, Alexander Aristov [EMAIL PROTECTED] wrote: Trying hadoop-0.18.2 I got next output [root]# hadoop fs -ls / Found 2 items drwxr-xr-x - root supergroup 0 2008-11-21 08:08 /mnt drwxr-xr-x - root supergroup 0 2008-11-21 08:19 /repos ... which reminds me. I really wish ls didn't default to -l.