<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Copy file from Windows to sandbox hosted in Azure in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129922#M55761</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/338/drice.html" nodeid="338"&gt;@Dan Rice&lt;/A&gt;&lt;P&gt;Hi dan thanks for your help just want to give you update about the process when i ran the first line ok commands it work but when i tried this &lt;STRONG&gt;docker cp /home/drice/test2.txt sandbox:dan/test2.txt. it said not such file exist though i used my directory.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2017 05:09:48 GMT</pubDate>
    <dc:creator>Temidee</dc:creator>
    <dc:date>2017-03-01T05:09:48Z</dc:date>
    <item>
      <title>Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129918#M55757</link>
      <description>&lt;P&gt;I was successfuly able to copy a file to Azure from Windows using Putty Copy (pscp). I used the following command&lt;/P&gt;&lt;P&gt;pscp - P 22 &amp;lt;file from local folder&amp;gt; tmp\&lt;/P&gt;&lt;P&gt;I could see that file in the sandbox host. Now when i tried to "put" the file from sandbox host to the sandbox itself (docker container), i am not able to do so (throws network not accessible error). The command below&lt;/P&gt;&lt;P&gt;hadoop fs -ls -put \tmp\onecsvfile.csv \tmp\&lt;/P&gt;&lt;P&gt;hadoop fs -ls -put \tmp\onecsvfile.csv root@localhost:2222\\tmp\&lt;/P&gt;&lt;P&gt;Nothing works &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how can i move the file from sandbox host to the sandbox (Sandbox 2.5 hosted in Azure)?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:10:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129918#M55757</guid>
      <dc:creator>praskutti</dc:creator>
      <dc:date>2022-09-16T11:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129919#M55758</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15635/praskutti.html" nodeid="15635"&gt;@Prasanna G&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;You have the following options:&lt;/P&gt;&lt;P&gt;1. You can use "docker cp" if you have only one file. &lt;A href="https://docs.docker.com/engine/reference/commandline/cp/"&gt;Here&lt;/A&gt; is the documentation with examples.&lt;/P&gt;&lt;P&gt;2. The most flexible solution is mounting local drives to the sandbox with the -v option of "docker run". This is preferred because all the content in the folder is accessible inside the container.&lt;/P&gt;&lt;PRE&gt;docker run -v /Users/&amp;lt;path&amp;gt;:/&amp;lt;container path&amp;gt; ...&lt;/PRE&gt;&lt;P&gt;You can find an example how to configure this for Sandbox &lt;A href="https://community.hortonworks.com/articles/58458/installing-docker-version-of-sandbox-on-mac.html"&gt;here&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 23:01:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129919#M55758</guid>
      <dc:creator>darvasip</dc:creator>
      <dc:date>2017-02-28T23:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129920#M55759</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15635/praskutti.html" nodeid="15635"&gt;@Prasanna G&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You'll have to first copy the file from the local filesystem into the docker container like below.&lt;/P&gt;&lt;P&gt;First I created a directory on my docker container like so&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;docker exec sandbox mkdir /dan/ &lt;/STRONG&gt;(can then run a &lt;STRONG&gt;docker exec sandbox ls&lt;/STRONG&gt; to see that your mkdir worked)&lt;/P&gt;&lt;P&gt;then I copied the file to the directory I just created&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;docker cp /home/drice/test2.txt sandbox:dan/test2.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(where sandbox is the name of the docker container running HDP....you can get a list of containers by running &lt;STRONG&gt;docker ps&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;once the file is in the docker container you can then copy to hadoop&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;docker exec sandbox hadoop fs -put /dan/test2.txt /test2.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[root@sandbox drice]# &lt;STRONG&gt;docker exec sandbox hadoop fs -ls /&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Found 13 items&lt;/P&gt;&lt;P&gt;drwxrwxrwx   - yarn   hadoop          0 2016-10-25 08:10 /app-logs&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - hdfs   hdfs            0 2016-10-25 07:54 /apps&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - yarn   hadoop          0 2016-10-25 07:48 /ats&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - hdfs   hdfs            0 2016-10-25 08:01 /demo&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - hdfs   hdfs            0 2016-10-25 07:48 /hdp&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - mapred hdfs            0 2016-10-25 07:48 /mapred&lt;/P&gt;&lt;P&gt;drwxrwxrwx   - mapred hadoop          0 2016-10-25 07:48 /mr-history&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - hdfs   hdfs            0 2016-10-25 07:47 /ranger&lt;/P&gt;&lt;P&gt;drwxrwxrwx   - spark  hadoop          0 2017-02-28 15:05 /spark-history&lt;/P&gt;&lt;P&gt;drwxrwxrwx   - spark  hadoop          0 2016-10-25 08:14 /spark2-history&lt;/P&gt;&lt;P&gt;-rw-r--r--   1 root   hdfs           15 2017-02-28 15:04 /test.txt&lt;/P&gt;&lt;P&gt;drwxrwxrwx   - hdfs   hdfs            0 2016-10-25 08:11 /tmp&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - hdfs   hdfs            0 2016-10-25 08:11 /user&lt;/P&gt;&lt;P&gt;NOTE: Another way to do this is to just use the ambari file browser view to copy files graphically.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 23:14:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129920#M55759</guid>
      <dc:creator>drice1</dc:creator>
      <dc:date>2017-02-28T23:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129921#M55760</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/338/drice.html" nodeid="338"&gt;@Dan Rice&lt;/A&gt;. Thanks dan but please can you explain to me more how to go about this process since am using the virtual machine on azure portal and am just beginning to learn this concept. thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 04:19:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129921#M55760</guid>
      <dc:creator>Temidee</dc:creator>
      <dc:date>2017-03-01T04:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129922#M55761</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/338/drice.html" nodeid="338"&gt;@Dan Rice&lt;/A&gt;&lt;P&gt;Hi dan thanks for your help just want to give you update about the process when i ran the first line ok commands it work but when i tried this &lt;STRONG&gt;docker cp /home/drice/test2.txt sandbox:dan/test2.txt. it said not such file exist though i used my directory.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 05:09:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129922#M55761</guid>
      <dc:creator>Temidee</dc:creator>
      <dc:date>2017-03-01T05:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129923#M55762</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/15918/temideeadedayo.html" nodeid="15918"&gt;@Adedayo Adekeye&lt;/A&gt;&lt;P&gt;Ambari is the web ui that is used to administer, monitor, and provision out a hadoop cluster.  It also has the concept of VIEWs which allow for browsing the Hadoop Distributed filesystem (HDFS) as well as querying data through Hive, writing pig scripts amongst other things (even extensible to do something custom).  Regardless within Ambari (example link - &lt;A href="http://&amp;lt;CHANGE"&gt;http:// TO AZURE PUBLIC IP&amp;gt;:8080/#/main/views/FILES/1.0.0/AUTO_FILES_INSTANCE )&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can log in as raj_ops (with password as raj_ops) in order to get to the files view.  Don't just click the link but you'll have to change the above link to match your Azure sandbox Public IP address.  This also assumes you have port 8080 open in Azures Network Security Group setting.&lt;/P&gt;&lt;P&gt;You may want to follow the instructions on how to reset the ambari admin password - &lt;A href="https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/#setup-ambari-admin-password"&gt;https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/#setup-ambari-admin-password&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 05:10:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129923#M55762</guid>
      <dc:creator>drice1</dc:creator>
      <dc:date>2017-03-01T05:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129924#M55763</link>
      <description>&lt;P&gt;Thanks for the response. This &lt;STRONG&gt;dint work &lt;/STRONG&gt;in Azure. I get this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13127-docker-daemon-error.jpg" style="width: 640px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22411iCC03EA6247555612/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13127-docker-daemon-error.jpg" alt="13127-docker-daemon-error.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was able to ssh into port 2222 though, in Azure. Am i missing something?&lt;/P&gt;&lt;P&gt;However, this worked in my VMWare workstation. &lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:37:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129924#M55763</guid>
      <dc:creator>praskutti</dc:creator>
      <dc:date>2019-08-19T09:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129925#M55764</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15635/praskutti.html" nodeid="15635" target="_blank"&gt;@Prasanna G&lt;/A&gt; Have you started Sandbox from Azure Marketplace? &lt;/P&gt;&lt;P&gt;If so, you need to manually install Docker, as described &lt;A href="https://hortonworks.com/hadoop-tutorial/hortonworks-sandbox-guide/#section_4" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You have the option to install Docker extension with VM install, it should work as well:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13142-3fbmi.png" style="width: 2516px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22410iBF36DA33B6D5AF94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13142-3fbmi.png" alt="13142-3fbmi.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:37:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129925#M55764</guid>
      <dc:creator>darvasip</dc:creator>
      <dc:date>2019-08-19T09:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129926#M55765</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/86019/copy-file-from-windows-to-sandbox-hosted-in-azure.html#" rel="nofollow noopener noreferrer" target="_blank"&gt;@Prasanna G&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You'll have to first sudo su as (or just use &lt;STRONG&gt;sudo docker ps&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;See screen shot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13145-docker.png" style="width: 2378px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22409iA0DCC6E2720FC59D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13145-docker.png" alt="13145-docker.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:37:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129926#M55765</guid>
      <dc:creator>drice1</dc:creator>
      <dc:date>2019-08-19T09:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129927#M55766</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15635/praskutti.html" nodeid="15635"&gt;@Prasanna G&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;When you ssh to port 2222, you are inside the sandbox container.  Is the file there?  if you ls -l tmp/ what do you get?  which would be different than ls -l /tmp based on the pscp command you ran. you should be able to pscp directly to the container by going to port 2222. &lt;/P&gt;&lt;PRE&gt;pscp -P 2222 &amp;lt;file_from_local&amp;gt; /tmp
&lt;/PRE&gt;&lt;P&gt;Then, in your shell you should be able to&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# ls -l /tmp
total 548
-rw-r--r-- 1 root       root     7540 Feb 27 10:00 file_from_local
&lt;/PRE&gt;&lt;P&gt;Then I think you will want to copy it from the linux fs to the HDFS using hadoop command:&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# hadoop fs -put /tmp/file_from_local /tmp
[root@sandbox ~]# hadoop fs -ls /tmp
-rw-r--r--   1 root      hdfs          0 2017-03-01 20:43 /tmp/file_from_local&lt;/PRE&gt;&lt;P&gt;Enjoy!&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 04:45:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129927#M55766</guid>
      <dc:creator>jwhitmore</dc:creator>
      <dc:date>2017-03-02T04:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129928#M55767</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/10827/pdarvasi.html" nodeid="10827"&gt;@pdarvasi&lt;/A&gt; , the docker is installed as part of the Azure Sandbox. I can see the docker service running. And i was also able to run the docker cp command once i did "sudo su"&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 15:48:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129928#M55767</guid>
      <dc:creator>praskutti</dc:creator>
      <dc:date>2017-03-02T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129929#M55768</link>
      <description>&lt;P&gt;Yes this did it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I tried the sudo su earlier too, but i dint work. I restarted the docker service and did a sudo su , it all worked fine. guess there was some issue with docker service.&lt;/P&gt;&lt;P&gt;For anyone who wants to try, i did this&lt;/P&gt;&lt;P&gt;After u logged on to the VM via Putty (if ur host OS is Windows) , &lt;STRONG&gt;dont&lt;/STRONG&gt; ssh into root@sandbox yet. Stay on the linux VM and do these&lt;/P&gt;&lt;P&gt;services docker restart&lt;/P&gt;&lt;P&gt;sudo su&lt;/P&gt;&lt;P&gt;docker ps&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 15:51:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129929#M55768</guid>
      <dc:creator>praskutti</dc:creator>
      <dc:date>2017-03-02T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from Windows to sandbox hosted in Azure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129930#M55769</link>
      <description>&lt;P&gt;Great to hear that you got things working &lt;A rel="user" href="https://community.cloudera.com/users/15635/praskutti.html" nodeid="15635"&gt;@Prasanna G&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 21:51:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Copy-file-from-Windows-to-sandbox-hosted-in-Azure/m-p/129930#M55769</guid>
      <dc:creator>drice1</dc:creator>
      <dc:date>2017-03-02T21:51:09Z</dc:date>
    </item>
  </channel>
</rss>

