简体   繁体   中英

Walk HDFS using Python

Is it possible to walk HDFS using Python? If it's possible, how can I do it? Thanks!

hdfs3 which is based on libhdfs3 supports this

from hdfs3 import HDFileSystem
hdfs = HDFileSystem()
hdfs.walk('/path/to/directory')

There are some libraries that you can take a look:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM