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
You need to represent Space as %20
, i.e.
Event ordering
-> Event%20ordering
try
hadoop fs -copyFromLocal /my/local/dir/Event%20ordering/* input/
It will work.
Remove space between Directory name and it will work
steps are as follows
1.Rename directory name and remove space between them
change Event ordering to Eventordering
2 now run following command
hadoop fs -copyFromLocal /home/hduser/Pictures/Eventordering/* input/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With