How can I list subdirectories recursively for HDFS?
To list directory contents recursively hadoop dfs -lsr /dirname
command can be used.
To filter only directories , you can grep
"drwx" (since owner has rwx permission on directories) in output of above command.
Hence whole command will look like as below.
$hadoop dfs -lsr /sqoopO7 | grep drwx