Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Getting error while copying file from windows to sandbox

Highlighted

Getting error while copying file from windows to sandbox

New Contributor

Using the following command -

scp -p 2222 C:/Users/Rohan/Downloads/test.txt root@127.0.0.1:/root

Getting the following error

ssh: Could not resolve hostname C: Name or service not known

I have the following entry in hosts file -

127.0.0.1 sandbox.hortonworks.com

How to resolve this? I am using putty to access sandbox

2 REPLIES 2
Highlighted

Re: Getting error while copying file from windows to sandbox

Super Guru

from windows can you try pscp instead of scp

Re: Getting error while copying file from windows to sandbox

Expert Contributor

11141-screen-shot-2017-01-04-at-35437-pm.png

Easiest way to copy over files from Windows to hdfs is by using Ambari files view, and use the upload button to load files from your OS to HDFS, you can then use hadoop fs commands to move the files from hdfs to unix file system within your vm..

Don't have an account?
Coming from Hortonworks? Activate your account here