Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Unable to move localfile into hdfs

avatar
New Member

I am trying to move a file from local(windows) to hortonworks sandbox, but I see an urisyntaxexception

I tried both put and copyFromLocal

1621-image.png

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Sai ram

You can use file system view to upload file from your laptop

The above approach won't work because you are in sandbox and trying to read laptop local drive

View solution in original post

13 REPLIES 13

avatar
Master Mentor

avatar
Master Mentor

You need to share the host directory to guest. Only then you can browse host filesystem. Refer to virtualbox docs for guest sharing. @Sai ram

avatar
New Member

@Artem Ervits Even after wrapping, I get the same error

avatar
Master Mentor

Fastest way is to scp the file to sandbox and then copyfromlocal but guest sharing will let you drop files to sandbox with drag and drop. To scp you'd use

scp -P 2222 file root@127.0.0.1:

Then you can find your file in /root @Sai ram