Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> S3 listStatus on a directory return the directory itself as a file


Copy link to this message
-
Re: S3 listStatus on a directory return the directory itself as a file
I think there is no distinguish between directory and file in the
Filesystem implementation.
So you got the two file status, one is a directory and another one is
ordinary file.

2012/7/10 Subroto <[EMAIL PROTECTED]>

> Hi,
>
> I am using Native S3 file system with Hadoop 0.20.2
> I have a bucket called "dm.test.subroto" and a folder structure within it
> like:
> folder1/folder2/2012/02 which has a file called report.csv
>
> When I call list status on the a/m mentioned path I get a array of two
> file status:
> 1) A file(not directory) with the path:s3n://
> dm.test.subroto/folderLevel1/folderLevel2/2012/02
> 2) A file with path
> s3n://dm.test.subroto/folderLevel1/folderLevel2/2012/02/report.csv
>
> Is it correct to get the folder to be listed as a file again or there is a
> problem with NativeS3FileSystem implementation?
>
> Cheers,
> Subroto Sanyal
>