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

Switch to Threaded View
HDFS, mail # user - How to find EOF


Copy link to this message
-
Re: How to find EOF
Denny Ye 2012-06-13, 00:17
DFSInputStream.available();

2012/6/13 Mohammad Tariq <[EMAIL PROTECTED]>

> Hello list,
>
>    Is it possible to find the end of a file stored in hdfs using the
> hdfs API??currently I am comparing FSDataInputStream.getPos() with
> FileSystem.getFileStatus().getLen() to serve the purpose..Thank you
>
> Regards,
>     Mohammad Tariq
>