To get the size of a file, you should use hdfsGetPathInfo instead.

On Fri, 15 Jul 2022 at 04:49, Pratyush Das <[email protected]> wrote:

> Hi,
>
> Since hdfsAvailable's return type (
> https://github.com/apache/hadoop/blob/3b46aae977e078cf7eb5e6bbbc55aca7cecee4c7/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/include/hdfs/hdfs.h#L824)
> is int, it is difficult to accurately get the size of large files using
> the C API. Are there any workarounds?
>
> Thank you,
>
> --
> Pratyush Das
>

Reply via email to