visibility 20 comment 0 access_time 2 months ago language English

codeHDFS - List Folder Recursively

This code snippet provides one example to list all the folders and files recursively under one HDFS path. The key is to use -R option of the ls sub command.

Sample output:


Code snippet

# Replace the path accordingly to your HDFS path
hadoop fs -ls -R /user/hive/warehouse/test_db.db/bucket_table
fork_right Fork
copyright This page is subject to Site terms.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

comment Comments
No comments yet.