copyFromLocal: unexpected URISyntaxException

Riddle picture Riddle · Nov 17, 2014 · Viewed 14.4k times · Source

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

Answer

Manish Agrawal picture Manish Agrawal · Jul 4, 2015

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.