Support Questions

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

Trying to copy file from my windows machine to sandbox and not succeding

avatar
Rising Star

Hello @slachterman

Greetings!!!

I am trying to copy a file from my local windows machine to sandbox using below command and not seeing the file in sandbox root directory after executing command.

scp -P C:/Users/rnkumashi/Downloads/sample.txt root@localhost:/root

1.I am connected to sandbox using Vm ware.

2.After executing the command i am trying to list the content in sandbox root directory and not seeing the file.

Please see below for the details.

5303-scp-command.png

any help would be great and i am new to sandbox.

1 ACCEPTED SOLUTION

avatar

@Ravikumar Kumashi

Try this command instead.

scp -P 2222 C:/Users/rnkumashi/Downloads/sample.txt root@localhost:/root

However you need something like cygwin to make scp work from windows machine.

You have to run the command from windows, not sandbox.

This is a good document to get you started http://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/

View solution in original post

33 REPLIES 33

avatar
@Rakshith Gowda

please take a look at my comment above and address those questions for further troubleshooting.

avatar
Explorer
  • if someone could guide me it could be of great help
  • 12479-ifconfig1.png

avatar
Contributor

Hello, I am trying to copy a file and following the above working suggestion, however, it failed here, please see the screenshot.

First time:

scp C/RXIE/Learning/Github/spark-master/examples/src/main/python/streaming/kafka_wordcount.py root@localhost:/root

Second time:

scp C:/RXIE/Learning/Github/spark-master/examples/src/main/python/streaming/kafka_wordcount.py root@localhost:/root

12955-screenshot-2-23-2017-10-45-09-pm.jpg

How do I fix it? Thank you very much.

avatar
Contributor

I tried again using the hortonworks sandbox's ip address, this time it says Connection refused (tried port 2222, failed with same error)

scp  C/RXIE/Learning/Github/spark-master/examples/src/main/python/streaming/kafka_wordcount.py root@192.168.128.119:/root

12956-screenshot-2-23-2017-10-50-21-pm.jpg