How to copy files from HDFS recursive to the local file system
How we can copy recursive jar files from HDFS ( jar files are under sub folders ) to local folder?
Example
export hdfs_folder=/app/lib export local_folder=/home/work_appwhile under /app/lib we have the following sub folder with the jar files
as
/app/lib/folder_jar1
/app/lib/folder_jar2Under each of above folder we have jar files
The following command , will copy only the jar files under /app/lib
but not the Jar files under the sub folders as /app/lib/folder_jar1 , /app/lib/folder_jar2 , Etc
hadoop fs -copyToLocal $hdfs_folder/*.jar $local_folder
