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:
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: