Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to Upload/Download file from Windows to Hortonworks Sandbox

avatar
Contributor

Hi all ,

I have install Hortownworks Sandbox in Oracle virtual machine. Now I want to upload files from Windows to HDFS. I have tried following command.

C:\InputFileWindows>scp -p 22 datafile.txt root@localhost:

But I am not able to do that. It is giving me permission denied error;

77648-permissiondenied.jpg

8 REPLIES 8

avatar

Hey @JAy PaTel!
Did you tried to connect using the port 2222? And if isn't, could you add the -v(verbose) parameter to your scp command?
Hope this helps!

avatar
Contributor

Hey @Vinicius Higa Murakami,
yes, I tried following,

C:\InputFileWindows>scp -p 2222 datafile.txt root@localhost:
C:\InputFileWindows>scp -p -v 22 datafile.txt root@localhost:
C:\InputFileWindows>scp -p -v 2222 datafile.txt root@localhost:

But it doesn't help me, facing same error.

Thank you.

Jay.

avatar

Hey @JAy PaTel!
I see, could you share the output from the following command?

C:\InputFileWindows>scp -v -p  2222 datafile.txt root@localhost:/

Thanks!

avatar
Contributor

@Vinicius Higa Murakami

Sure !

I have attached log below.

error.txt

Regards

Jay.

avatar

@JAy PaTel try with 127.0.0.1 instead of localhost. scp -v -p 2222 datafile.txt root@127.0.0.1:/

HTH

*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.

avatar
Contributor

@Felix Albani

No, it doesn't work for me.

Regards,

Jay.

avatar

@JAy PaTel Try with putty alternative pscp, hopefully this will work. Or else you can create a shared folder on your virtualbox and use it to move files from windows to virtual machine.

avatar
Contributor

@Felix Albani

I tried using putty also. But it also doesn't work for me.

Regards,

Jay.