<?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: HIVE MANAGED TABLE in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HIVE-MANAGED-TABLE/m-p/280061#M208645</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70232"&gt;@Gerva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Select count(*) from &amp;lt;table&amp;gt;;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Query launches map reduce job and output will be displayed to the &lt;U&gt;&lt;STRONG&gt;console&lt;/STRONG&gt;&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If you want to store the output to &lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Writingdataintothefilesystemfromqueries" target="_blank" rel="noopener"&gt;file&lt;/A&gt; then use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Insert overwrite directory '&amp;lt;directory_name&amp;gt;' select count(*) from&amp;nbsp;scenariox;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now output of map reduce job will be stored into the given &lt;STRONG&gt;hdfs directory&lt;/STRONG&gt; and you can find 00000_0 file in directory..&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Oct 2019 03:29:58 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-10-13T03:29:58Z</dc:date>
    <item>
      <title>HIVE MANAGED TABLE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HIVE-MANAGED-TABLE/m-p/279984#M208592</link>
      <description>&lt;P&gt;Good Morning.&lt;BR /&gt;I am doing a small example with HIVE and MANAGED TABLE.&lt;/P&gt;
&lt;P&gt;My environment is Oracle VM virtual Box 6.0&lt;BR /&gt;Hive 1.1.0-cdh5.13.0&lt;/P&gt;
&lt;P&gt;I indicate the steps I have taken:&lt;BR /&gt;1st)&lt;BR /&gt;CREATE DATABASE scenariox&lt;/P&gt;
&lt;P&gt;2nd)&lt;/P&gt;
&lt;P&gt;USE scenariox&lt;/P&gt;
&lt;P&gt;CREATE TABLE scenariox&lt;BR /&gt;(&lt;BR /&gt;smallint order;&lt;BR /&gt;name string;&lt;BR /&gt;)&lt;BR /&gt;ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';&lt;/P&gt;
&lt;P&gt;3rd) I load the table with my csv file that is stored in HDFS&lt;/P&gt;
&lt;P&gt;HDFS&amp;gt; /scenariox/scenariox.csv&lt;/P&gt;
&lt;P&gt;LOAD DATA LOCAL INPATH '/scenariox/scenariox.csv' INTO TABLE scenariox&lt;/P&gt;
&lt;P&gt;The table loads correctly. I can run: '' Select * from scenariox ''. I recover data correctly. The table has been loaded successfully.&lt;BR /&gt;The directories in hive are created correctly:&lt;/P&gt;
&lt;P&gt;/user/hive/warehouse/scenariox.db/scenariox/scenariox.csv&lt;/P&gt;
&lt;P&gt;I execute the sentence: SELECT COUNT (1) FROM scenariox;&lt;BR /&gt;MAP / REDUCE launched&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura.JPG" style="width: 789px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24907i199E17493A91AFBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura.JPG" alt="Captura.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My problem is: I can't find the output file that produces the map / reduce.&lt;/P&gt;
&lt;P&gt;What directory is it stored in? I thought that a file of type '00000_0' was generated and stored in the HDFS.&lt;/P&gt;
&lt;P&gt;Can somebody help me? Thank you. Greetings&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 13:57:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HIVE-MANAGED-TABLE/m-p/279984#M208592</guid>
      <dc:creator>Gerva</dc:creator>
      <dc:date>2019-10-11T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE MANAGED TABLE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HIVE-MANAGED-TABLE/m-p/280061#M208645</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70232"&gt;@Gerva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Select count(*) from &amp;lt;table&amp;gt;;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Query launches map reduce job and output will be displayed to the &lt;U&gt;&lt;STRONG&gt;console&lt;/STRONG&gt;&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If you want to store the output to &lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Writingdataintothefilesystemfromqueries" target="_blank" rel="noopener"&gt;file&lt;/A&gt; then use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Insert overwrite directory '&amp;lt;directory_name&amp;gt;' select count(*) from&amp;nbsp;scenariox;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now output of map reduce job will be stored into the given &lt;STRONG&gt;hdfs directory&lt;/STRONG&gt; and you can find 00000_0 file in directory..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 03:29:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HIVE-MANAGED-TABLE/m-p/280061#M208645</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-10-13T03:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE MANAGED TABLE</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HIVE-MANAGED-TABLE/m-p/280084#M208665</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/55311"&gt;@Shu_ashu&lt;/a&gt; Great!. With the instructions you have given me, the output file is created correctly. I also tried the option: CREATE TABLE AS scenariox_out AS SELECT select count (*) from scenariox; And the output file was created in: /user/hive/warehouse/scenariox.db/scenariox/scenariox_out/000000_0 Thank you. You have a good day&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 08:13:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HIVE-MANAGED-TABLE/m-p/280084#M208665</guid>
      <dc:creator>Gerva</dc:creator>
      <dc:date>2019-10-14T08:13:59Z</dc:date>
    </item>
  </channel>
</rss>

