I've to read a file at a given location in HDFS and do further operations. I am using FileSystem API to watch the location:
FileSystem.listStatus(workingDir)
My problem is a growing file i.e. for example a 200GB file being dropped at that location. This code above returns the file name/path but the file is still not fully copied. Is there a way to find out if the file is fully copied using Java API? I have read this and few other blogs/questions but haven't found what I've been looking for.