Here is an example, might help you.
On Tue, Aug 28, 2012 at 12:55 PM, Chris Collins
> Hi I am trying to use the Hadoop filesystem abstraction with S3 but in my
> tinkering I am not having a great deal of success. I am particularly
> interested in the ability to mimic a directory structure (since s3 native
> doesnt do it).
> Can anyone point me to some good example usage of Hadoop FileSystem with
> I created a few directories using transit and AWS S3 console for test.
> Doing a liststatus of the bucket returns a FileStatus object of the
> directory created but if I try to do a liststatus of that path I am getting
> a 404:
> org.jets3t.service.S3ServiceException: Request Error. HEAD '/aaaa' on Host
> Probably not the best list to look for help, any clues appreciated.