I am trying to copy some files from my hard drive to HDFS , I am using this command
hadoop fs -copyFromLocal /home/hduser/Pictures/Event\ ordering/* input/
Is this the correct syntax ?
PS : I am using linux
PPS: I get this error
copyFromLocal: unexpected URISyntaxException
hadoop fs -copyFromLocal /home/hduser/Pictures/Event\\\ ordering/* input/
. – Yahrzeit:
? It is not supported at the moment issues.apache.org/jira/browse/HADOOP-7945 – Yahrzeit%20
. Please tryhadoop fs -copyFromLocal /home/hduser/Pictures/Event%20ordering/* input/
. But this will cause the shell not to expand*
into filenames and you'll get files not found. Tryhadoop fs -copyFromLocal /home/hduser/Pictures/openCV+Tank%20Detection/10.png input
and it should work. – Yahrzeitfor file in /home/hduser/Pictures/Event\ ordering/*; do files=${files},${file// /%20}; done; hadoop fs -copyFromLocal $(eval echo {${files#,}}) input
. – Yahrzeit