Support Questions

Find answers, ask questions, and share your expertise

Unable to move localfile into hdfs

avatar
Contributor

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
Contributor

@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