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.

Aligning Home Directories between Sandbox and local Mac?

Aligning Home Directories between Sandbox and local Mac?

Contributor

I am on step 1.4 in Section 2 of the "Learning the Ropes ..." tutorial (Sandbox in Microsoft Azure). I am borrowing a friend's Mac to explore Hortonworks. His home (~) directory is mapped to /Users/MyFriend. When I try to scp a file from his Downloads folder (/Users/MyFriend/Downloads/Somefile.txt) to my Sandbox using the instructions in the step, scp assumes a different path.

scp -P 22 ~/Downloads/Somefile.txt MyName@localhost:/MyName

Console Response: Home/MyName/Downloads/Somefile.txt: No such file or directory

How do I align this?

4 REPLIES 4

Re: Aligning Home Directories between Sandbox and local Mac?

Guru

I am flying a little blind here, but for the scp command

scp SourceFile user@host:directory/TargetFile

could you use the absolute path for SourceFile instead of relative to home?

(If you navigate to the location of SourceFile, the command pwd will tell you the absolute path)

Re: Aligning Home Directories between Sandbox and local Mac?

Contributor

OK I tried that, @gkeys but I'm not quite there yet ...

From the directory where Sourcefile exist, I type 'pwd' and get: /Users/MyFriend/Downloads/Somefile.txt

So I try: scp -P 22 /Users/MyFriend/Downloads/Somefile.txt MyName@localhost:/MyName

Console Response: /Users/MyFriend/Downloads/Somefile.txt: No such file or directory

When I run "ls -l" from the Sourcefile directory, I see:

-rw-r--r--@ 1 MyFriend staff 136572 Mar 16 2015 SomeFile.txt

Any other ideas anyone? Could this be a permissions issue?

Re: Aligning Home Directories between Sandbox and local Mac?

Guru

Worth a try. Run chmod 777 against the file and give it another go.

Highlighted

Re: Aligning Home Directories between Sandbox and local Mac?

Contributor

Darn, same result. (the file's permissions are now set to -rwxrwxrwx)