Listing the content of a HDFS folder oder by timestamp using shell

2011-08-09 Thread Florin P
Hello! I would like to know how to list the content of a folder ordered by timestamp using shell commands. Thank you. Regards, Florin

Re: Listing the content of a HDFS folder oder by timestamp using shell

2011-08-09 Thread Uma Maheswara Rao G 72686
Hi Florin, >./hadoop fs -ls Above command will give timestamp also. Regards, Uma Mahesh - Original Message - From: Florin P Date: Tuesday, August 9, 2011 12:52 pm Subject: Listing the content of a HDFS folder oder by timestamp using shell To: hdfs-user@hadoop.apache.org > Hello! >

Re: Listing the content of a HDFS folder oder by timestamp using shell

2011-08-09 Thread Florin P
Hello! Thank you for your response. I knew about "hadoop fs -ls", but unfortunately it is listing unordered content regarding the timstamp, as you can see in my example(look at the timestamp): drwxr-xr-x - platform supergroup 0 2011-07-08 17:53 /user/platform/dirxx/hbase dr

Get rid of crc files when using FileUtil.copy(FileSystem srcFS, Path src, File dst, boolean deleteSource, Configuration conf) is used

2011-08-09 Thread Florin P
Hello!   We have used the method FileUtil.copy(FileSystem srcFS, Path src, File dst, boolean deleteSource, Configuration conf) , and we have seen that some crc files were generated for each copied file. We would like that these files do not be generated. We have tried to use FileSystem.setVerify

Re: Get rid of crc files when using FileUtil.copy(FileSystem srcFS, Path src, File dst, boolean deleteSource, Configuration conf) is used

2011-08-09 Thread Uma Maheswara Rao G 72686
Hi Florin, Recently i had given the patch for controlling .crc files at client side. Please look at https://issues.apache.org/jira/browse/HADOOP-7178. Provided one extra API in FileSystem.java, public void copyToLocalFile(boolean delSrc, Path src, Path dst, boolean useRawLocalFileSystem)

Re: Listing the content of a HDFS folder oder by timestamp using shell

2011-08-09 Thread Uma Maheswara Rao G 72686
Hi Florin As i know , there is no support to listing ordered content. Regards, Uma - Original Message - From: Florin P Date: Tuesday, August 9, 2011 6:34 pm Subject: Re: Listing the content of a HDFS folder oder by timestamp using shell To: hdfs-user@hadoop.apache.org > Hello! > Thank

Re: Listing the content of a HDFS folder oder by timestamp using shell

2011-08-09 Thread Weiwei Xiong
You can pipe the result to sort, like this "hadoop dfs -ls your-hdfs-dir | sort -k 6" -- weiwei On Tue, Aug 9, 2011 at 6:03 AM, Florin P wrote: > Hello! > Thank you for your response. I knew about "hadoop fs -ls", but > unfortunately it is listing unordered content regarding the timstamp, as yo