Is there a way to list directories only and their directories recursively with the hadoop command line?
I was wondering if there is some kind of command like the unix command:
find / tmp -type d -print
Try also: (listing directories as root)
hadoop fs -ls -R / | grep "^d"
Try using this command
hdfs dfs -ls hdfs:/