Support Questions
Find answers, ask questions, and share your expertise

How to Upload/Download file from Windows to Hortonworks Sandbox

How to Upload/Download file from Windows to Hortonworks Sandbox

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

Re: How to Upload/Download file from Windows to Hortonworks Sandbox

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!

Re: How to Upload/Download file from Windows to Hortonworks Sandbox

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.

Re: How to Upload/Download file from Windows to Hortonworks Sandbox

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!

Re: How to Upload/Download file from Windows to Hortonworks Sandbox

Contributor

@Vinicius Higa Murakami

Sure !

I have attached log below.

error.txt

Regards

Jay.

Re: How to Upload/Download file from Windows to Hortonworks Sandbox

@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.

Re: How to Upload/Download file from Windows to Hortonworks Sandbox

Contributor

@Felix Albani

No, it doesn't work for me.

Regards,

Jay.

Re: How to Upload/Download file from Windows to Hortonworks Sandbox

@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.

Re: How to Upload/Download file from Windows to Hortonworks Sandbox

Contributor

@Felix Albani

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

Regards,

Jay.