<?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 HDPCD practice exam task 1, how to import data into HDFS? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213602#M82091</link>
    <description>&lt;P&gt;I am having problem to create AWS EC2 because  of the limitation and amazon is still processing my request. &lt;/P&gt;&lt;P&gt;So i use hortonworks Sandbox + Virtual box... i tried to upload the "fligthdelays" data into local, and then use " hdfs dfs -copyFromLocal"&lt;/P&gt;&lt;P&gt;But i actually i am confused about "local"....does this local mean... after connecting to maria_dev@localhost? but how can i upload files to home/maria_dev/datasets? even i tried to crate datasets by using ambri, but i can't find files from /home/maria_dev...... i am very confused how to write Task 1 by using sandbox.... &lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 13:35:33 GMT</pubDate>
    <dc:creator>senquan_chen</dc:creator>
    <dc:date>2022-09-16T13:35:33Z</dc:date>
    <item>
      <title>HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213602#M82091</link>
      <description>&lt;P&gt;I am having problem to create AWS EC2 because  of the limitation and amazon is still processing my request. &lt;/P&gt;&lt;P&gt;So i use hortonworks Sandbox + Virtual box... i tried to upload the "fligthdelays" data into local, and then use " hdfs dfs -copyFromLocal"&lt;/P&gt;&lt;P&gt;But i actually i am confused about "local"....does this local mean... after connecting to maria_dev@localhost? but how can i upload files to home/maria_dev/datasets? even i tried to crate datasets by using ambri, but i can't find files from /home/maria_dev...... i am very confused how to write Task 1 by using sandbox.... &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:35:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213602#M82091</guid>
      <dc:creator>senquan_chen</dc:creator>
      <dc:date>2022-09-16T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213603#M82092</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/92235/senquanchen.html" nodeid="92235"&gt;@seninus&lt;/A&gt;  The Copy To and Copy From HDFS syntax is as follows:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;hdfs dfs -copyFromLocal /local/folder/file.txt /hdfs/folder/&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;hdfs dfs -copyToLocal /hdfs/folder/file2.txt /local/folder/&lt;/P&gt;&lt;P&gt;where /local/ is the local file system and /hdfs/ is the hdfs file system&lt;/P&gt;&lt;P&gt;It is also important to note,  you want to execute those commands as hdfs user  so:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;sudo su - hdfs&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;sudo su - hdfs -c "hdfs dfs -copyFromLocal /local/folder/file.txt /hdfs/folder/"&lt;/P&gt;&lt;P&gt;If this answer is helpful please choose ACCEPT.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 23:56:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213603#M82092</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2018-08-14T23:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213604#M82093</link>
      <description>&lt;P&gt;You mean I have to install local hadoop(hdfs) at my Mac terminal first? and then use sudo su - hdfs at my Mac terminal?  I think I installed hadoop( havn't configured, it seems to be a long process), and when I tried "sh - hdfs ", the Mac terminal gave back " su: unknown login: hdfs" to me... &lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 00:25:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213604#M82093</guid>
      <dc:creator>senquan_chen</dc:creator>
      <dc:date>2018-08-15T00:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213605#M82094</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/92235/senquanchen.html" nodeid="92235"&gt;@seninus&lt;/A&gt; those hdfs commands are commands to execute using terminal prompt on the sandbox node,  not your mac...   copy LOCAL is from sandbox node to hdfs,  NOT your local mac&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 00:38:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213605#M82094</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2018-08-15T00:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213606#M82095</link>
      <description>&lt;P&gt;additionally that sandbox probably has a local (to the mac) folder path mounted on the sandbox file system.   You would need to use that path to get files from your mac to the sandbox, then sandbox to hdfs&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 00:39:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213606#M82095</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2018-08-15T00:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213607#M82096</link>
      <description>&lt;P&gt;Yes, this is what I understood and was trying to do. but I uploaded flightdelays*.csv files  to /datasets/flightdelays/ through Ambari. but I can't see local files when I login with maria_dev in terminal... &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="86478-screen-shot-2018-08-14-at-134533.png" style="width: 902px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16490i1EA6A5FAF8FC92BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="86478-screen-shot-2018-08-14-at-134533.png" alt="86478-screen-shot-2018-08-14-at-134533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="86479-screen-shot-2018-08-14-at-134743.png" style="width: 1976px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16491iDA55ED35825DA853/image-size/medium?v=v2&amp;amp;px=400" role="button" title="86479-screen-shot-2018-08-14-at-134743.png" alt="86479-screen-shot-2018-08-14-at-134743.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:38:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213607#M82096</guid>
      <dc:creator>senquan_chen</dc:creator>
      <dc:date>2019-08-18T03:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213608#M82097</link>
      <description>&lt;P&gt;now you just need to do the copy from hdfs to local filesystem:&lt;/P&gt;&lt;P&gt;sudo su - hdfs -c "hdfs dfs -copyToLocal /datasets /tmp"&lt;/P&gt;&lt;P&gt;mv /tmp/datasets /home/maria_dev   &lt;/P&gt;&lt;P&gt;This last command because hdfs user cant write to /home/maria_dev.  So write hdfs to tmp,  move from /tmp to /home/maria_dev&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 01:35:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213608#M82097</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2018-08-15T01:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213609#M82098</link>
      <description>&lt;P&gt;Thanks for the tips. yeah I found the similar questions and solved it. Thanks &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/9371/am-i-able-to-copy-a-file-from-my-mac-usersrevgeolo.html"&gt;https://community.hortonworks.com/questions/9371/am-i-able-to-copy-a-file-from-my-mac-usersrevgeolo.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 03:37:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213609#M82098</guid>
      <dc:creator>senquan_chen</dc:creator>
      <dc:date>2018-08-15T03:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD practice exam task 1, how to import data into HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213610#M82099</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/92235/senquanchen.html" nodeid="92235"&gt;@seninus&lt;/A&gt; glad you got it working.  Please click accept on the main answer please,  it helps close the question and gives me some reputation points. ;O)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 21:39:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-practice-exam-task-1-how-to-import-data-into-HDFS/m-p/213610#M82099</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2018-08-15T21:39:21Z</dc:date>
    </item>
  </channel>
</rss>

