hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Demai Ni <nid...@gmail.com>
Subject hdfs: a C API call to getFileSize() through libhdfs or libhdfs3?
Date Thu, 02 Oct 2014 21:51:04 GMT
hi, folks,

To get the size of a hdfs file, jave API has
now I am trying to use a C client to do the same thing.

For a file on local file system, I can grab the info like this:
fseeko(file, 0, SEEK_END);
size = ftello(file);

But I can't find the SEEK_END or a getFileSize() call in the existing
libhdfs or the newly libhdfs3

Can someone point me to the right direction? many thanks


View raw message