I want to copy only csv files from on directory into another, I use the command:
hadoop distcp /a/b/*.csv /e/f/
The issue here is, if there's multiple csv files under /a/b/, this command would work, it will copy all csv files into the directory /e/f/, however, if there's only one csv file, it will be copied into /e/f where f is a file not a directory, is there a way to resolve this? Thanks in advance!