The hadoop copyToLocal command is used to copy a file from the hdfs to the local file system.
The syntax and usage example is shown below:
Syntax
hadoop fs -copyToLocal [-ignorecrc] [-crc] URI <localdst>
Example:
hadoop fs -copyToLocal /user/DPhadoop/hadoopdemo/sales salesdemo
The -ignorecrc option is used to copy the files that fail the crc check. The -crc option is for copying the files along with their CRC.
The syntax and usage example is shown below:
Syntax
hadoop fs -copyToLocal [-ignorecrc] [-crc] URI <localdst>
Example:
hadoop fs -copyToLocal /user/DPhadoop/hadoopdemo/sales salesdemo
The -ignorecrc option is used to copy the files that fail the crc check. The -crc option is for copying the files along with their CRC.