<?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: Exercise 3: -mkdir /user/hive/warehouse/original_access_logs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32658#M8102</link>
    <description>&lt;P&gt;Hi TrevorG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think underscore should not be a probelm . check the output given below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs dfs -mkdir -p /user/hive/warehouse/original_access_logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs dfs -ls /user/hive/warehouse&lt;BR /&gt;Found 1 items&lt;BR /&gt;drwxr-xr-x - eip hive 0 2015-10-05 13:23 /user/hive/warehouse/original_access_logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Khirod&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2015 07:56:31 GMT</pubDate>
    <dc:creator>Khirod</dc:creator>
    <dc:date>2015-10-05T07:56:31Z</dc:date>
    <item>
      <title>Exercise 3: -mkdir /user/hive/warehouse/original_access_logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32642#M8101</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exercise 3 requires that I run the following command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo -u hdfs hadoop fs -mkdir /user/hive/warehouse/original_access_logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this retuns an error: mkdir: `/user/hive/warehouse/original_access_logs': Is not a directory&lt;/P&gt;&lt;P&gt;however it does create the directory if I femove the underscores. So...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;sudo -u hdfs hadoop fs -mkdir /user/hive/warehouse/originalaccesslogs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can complete the exercise if i maodify the remaining steps according to the new directory name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why the unserscores don't work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the cloudera quickstart vm 5.4.2-0 and running the red hat virtual OS&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:42:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32642#M8101</guid>
      <dc:creator>TrevorG</dc:creator>
      <dc:date>2022-09-16T09:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exercise 3: -mkdir /user/hive/warehouse/original_access_logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32658#M8102</link>
      <description>&lt;P&gt;Hi TrevorG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think underscore should not be a probelm . check the output given below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs dfs -mkdir -p /user/hive/warehouse/original_access_logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs dfs -ls /user/hive/warehouse&lt;BR /&gt;Found 1 items&lt;BR /&gt;drwxr-xr-x - eip hive 0 2015-10-05 13:23 /user/hive/warehouse/original_access_logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Khirod&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 07:56:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32658#M8102</guid>
      <dc:creator>Khirod</dc:creator>
      <dc:date>2015-10-05T07:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exercise 3: -mkdir /user/hive/warehouse/original_access_logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32668#M8103</link>
      <description>&lt;P&gt;I tested your command in the Cloudera Quickstart VM running the same version as you are (CDH 5.4.2).&lt;/P&gt;&lt;P&gt;I am using the VMWare version of the VM. Your command worked just fine (underscores are not a problem).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the commands I issued, try them and see if they work:&lt;/P&gt;&lt;P&gt;[cloudera@quickstart hive]$ sudo -u hdfs hadoop fs -ls /user/hive/warehouse &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-- verfiy dir does not exist&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cloudera@quickstart hive]$ sudo -u hdfs hadoop fs -mkdir /user/hive/warehouse/original_access_logs &amp;nbsp; -- create dir&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cloudera@quickstart hive]$ sudo -u hdfs hadoop fs -ls /user/hive/warehouse &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- verify dir exists&lt;BR /&gt;Found 1 items&lt;BR /&gt;drwxr-xr-x - hdfs hive 0 2015-10-05 06:46 /user/hive/warehouse/original_access_logs&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cloudera@quickstart hive]$ sudo -u hdfs hadoop fs -mkdir /user/hive/warehouse/original_access_logs &amp;nbsp; -- create dir fails&lt;BR /&gt;mkdir: `/user/hive/warehouse/original_access_logs': File exists&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cloudera@quickstart hive]$ sudo -u hdfs hadoop fs -rmdir /user/hive/warehouse/original_access_logs &amp;nbsp; &amp;nbsp;-- delete&amp;nbsp;dir&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cloudera@quickstart hive]$ sudo -u hdfs hadoop fs -ls /user/hive/warehouse &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- verify dir does not exist&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cloudera@quickstart hive]$ sudo -u hdfs hadoop fs -mkdir /user/hive/warehouse/original_access_logs &amp;nbsp; &amp;nbsp;-- try creating dir again&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cloudera@quickstart hive]$ sudo -u hdfs hadoop fs -ls /user/hive/warehouse &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-- verify dir was created&lt;BR /&gt;Found 1 items&lt;BR /&gt;drwxr-xr-x - hdfs hive 0 2015-10-05 06:47 /user/hive/warehouse/original_access_logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Note: It is best to switch from using 'hadoop fs ... ' commands to 'hdfs dfs ... ' commands as only the latter will be supported in the future.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 13:56:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32668#M8103</guid>
      <dc:creator>Sue</dc:creator>
      <dc:date>2015-10-05T13:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exercise 3: -mkdir /user/hive/warehouse/original_access_logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32675#M8104</link>
      <description>&lt;P&gt;Somehow didn't create the directory correctly. so after I ran the listing, I got...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[cloudera@quickstart ~]$ sudo -u hdfs hadoop fs -ls /user/hive/warehouse&lt;BR /&gt;Found 11 items&lt;BR /&gt;...&lt;BR /&gt;-rw-r--r--&amp;nbsp;&amp;nbsp; 1 hdfs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hive&amp;nbsp;&amp;nbsp; 39593868 2015-10-03 07:01 /user/hive/warehouse/original_access_logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So did a -rm rather than -rmdir and started again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So All good. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:00:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32675#M8104</guid>
      <dc:creator>TrevorG</dc:creator>
      <dc:date>2015-10-05T16:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exercise 3: -mkdir /user/hive/warehouse/original_access_logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32676#M8105</link>
      <description>&lt;P&gt;Terrific! Glad it's working.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:02:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exercise-3-mkdir-user-hive-warehouse-original-access-logs/m-p/32676#M8105</guid>
      <dc:creator>Sue</dc:creator>
      <dc:date>2015-10-05T16:02:25Z</dc:date>
    </item>
  </channel>
</rss>

