hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yanbo Liang <yanboha...@gmail.com>
Subject Re: S3 listStatus on a directory return the directory itself as a file
Date Thu, 26 Jul 2012 11:06:02 GMT
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 <ssanyal@datameer.com>

> 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

View raw message