Python hdfs list files. Now, run this python file you will see the below output.