I want to Check file size in hdfs using python but using hdfs path this os module doesn't work so how can I do this without import os Below is the code snippet
import os
hdfs_path='hdfs://user/mohitm/sagar/test1.csv'
if os.stat(hdfs_path).st_size>0:
print("File is not empty")
else:
print("Empty File")
can any one tell me how can I do this without import os Thanks