Kontext Copilot - An AI assistant for data analytics. Learn more
Expression of Interest
HDFS - List Folder Recursively
insights Stats
warning Please login first to view stats information.
Kontext
Code Snippets & Tips
Code snippets and tips for various programming languages/frameworks. All code examples are under MIT or Apache 2.0 license unless specified otherwise.
Code description
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
copyright
This page is subject to Site terms.
comment Comments
No comments yet.