copyFromLocal: unexpected URISyntaxException

16,417

Solution 1

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.

Solution 2

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/

Share:
16,417
Riddle
Author by

Riddle

Updated on June 30, 2022

Comments

  • Riddle
    Riddle about 2 years

    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