Description
$ hadoop dfs -get -crc /user/aa/test.txt test.txt
get: org.apache.hadoop.dfs.DistributedFileSystem cannot be cast to
org.apache.hadoop.fs.ChecksumFileSystem
The problem seems to be caused by the line 251 in FsShell#copyToLocal:
250; if (copyCrc) { 251: ChecksumFileSystem csfs = (ChecksumFileSystem) srcFS; ... }
Copying crc files to local should not require the source file system to be ChecksumFileSystem.