Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copyFromLocal: unexpected URISyntaxException

Tags:

hadoop

hadoop2

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
like image 716
Riddle Avatar asked Nov 17 '14 21:11

Riddle


2 Answers

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.

like image 164
Manish Agrawal Avatar answered Sep 19 '22 10:09

Manish Agrawal


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/

like image 20
Rakshesh Avatar answered Sep 19 '22 10:09

Rakshesh