<?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 Hive table is invisible if the script is scheduled with oozie in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-table-is-invisible-if-the-script-is-scheduled-with/m-p/23178#M25014</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a simple script for creating a table, and it works fine in the Hue browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CREATE DATABASE IF NOT EXISTS test;
create table test.agh_test_table_creation(
  id                int,
  dtDontQuery       string,
  name              string
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I schedule the script with oozie&amp;nbsp;I get successful, but the table is not visible in the hue browser.However, the table is present in the&amp;nbsp;folder:&amp;nbsp;user/hive/warehouse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; My oozie workflow contains the &lt;U&gt;hdfs-site.xml&lt;/U&gt; location:&lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app name="AGH_TEST_default_workspace_create_table" xmlns="uri:oozie:workflow:0.4"&amp;gt;
    &amp;lt;start to="AGH_test_default_create_table_test"/&amp;gt;
    &amp;lt;action name="AGH_test_default_create_table_test"&amp;gt;
        &amp;lt;hive xmlns="uri:oozie:hive-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
              &amp;lt;job-xml&amp;gt;hdfs-site.xml&amp;lt;/job-xml&amp;gt;
            &amp;lt;script&amp;gt;tes_table_creation_oozie&amp;lt;/script&amp;gt;
            &amp;lt;file&amp;gt;hdfs-site.xml#hdfs-site.xml&amp;lt;/file&amp;gt;
        &amp;lt;/hive&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="kill"/&amp;gt;
    &amp;lt;/action&amp;gt;
    &amp;lt;kill name="kill"&amp;gt;
        &amp;lt;message&amp;gt;Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
    &amp;lt;/kill&amp;gt;
    &amp;lt;end name="end"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I got the&amp;nbsp;hdfs-site.xml by downloading it from Cloudera Manager-&amp;gt; Clusters-&amp;gt; Hive-&amp;gt; Actions-&amp;gt; Download Client configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the source of the issue is not reling in the derby metastore since the metastore database is not the default one. I'm mentioning this, because of the stackoverflow post:&amp;nbsp;&lt;A target="_self" href="http://stackoverflow.com/questions/23615309/oozie-with-hive-issue"&gt;http://stackoverflow.com/questions/23615309/oozie-with-hive-issue&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG" style="width: 727px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/793i77154657F2DA6DC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do in order to make the table visible in the hue interface?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:17:00 GMT</pubDate>
    <dc:creator>AlinaGHERMAN</dc:creator>
    <dc:date>2022-09-16T09:17:00Z</dc:date>
    <item>
      <title>Hive table is invisible if the script is scheduled with oozie</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-table-is-invisible-if-the-script-is-scheduled-with/m-p/23178#M25014</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a simple script for creating a table, and it works fine in the Hue browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CREATE DATABASE IF NOT EXISTS test;
create table test.agh_test_table_creation(
  id                int,
  dtDontQuery       string,
  name              string
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I schedule the script with oozie&amp;nbsp;I get successful, but the table is not visible in the hue browser.However, the table is present in the&amp;nbsp;folder:&amp;nbsp;user/hive/warehouse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; My oozie workflow contains the &lt;U&gt;hdfs-site.xml&lt;/U&gt; location:&lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app name="AGH_TEST_default_workspace_create_table" xmlns="uri:oozie:workflow:0.4"&amp;gt;
    &amp;lt;start to="AGH_test_default_create_table_test"/&amp;gt;
    &amp;lt;action name="AGH_test_default_create_table_test"&amp;gt;
        &amp;lt;hive xmlns="uri:oozie:hive-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
              &amp;lt;job-xml&amp;gt;hdfs-site.xml&amp;lt;/job-xml&amp;gt;
            &amp;lt;script&amp;gt;tes_table_creation_oozie&amp;lt;/script&amp;gt;
            &amp;lt;file&amp;gt;hdfs-site.xml#hdfs-site.xml&amp;lt;/file&amp;gt;
        &amp;lt;/hive&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="kill"/&amp;gt;
    &amp;lt;/action&amp;gt;
    &amp;lt;kill name="kill"&amp;gt;
        &amp;lt;message&amp;gt;Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
    &amp;lt;/kill&amp;gt;
    &amp;lt;end name="end"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I got the&amp;nbsp;hdfs-site.xml by downloading it from Cloudera Manager-&amp;gt; Clusters-&amp;gt; Hive-&amp;gt; Actions-&amp;gt; Download Client configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the source of the issue is not reling in the derby metastore since the metastore database is not the default one. I'm mentioning this, because of the stackoverflow post:&amp;nbsp;&lt;A target="_self" href="http://stackoverflow.com/questions/23615309/oozie-with-hive-issue"&gt;http://stackoverflow.com/questions/23615309/oozie-with-hive-issue&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG" style="width: 727px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/793i77154657F2DA6DC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do in order to make the table visible in the hue interface?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:17:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-table-is-invisible-if-the-script-is-scheduled-with/m-p/23178#M25014</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2022-09-16T09:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table is invisible if the script is scheduled with oozie</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-table-is-invisible-if-the-script-is-scheduled-with/m-p/23208#M25015</link>
      <description>&lt;P&gt;I found my error:&lt;/P&gt;&lt;P&gt;- I included the hdfs-site.xml file (and not hive-site.xml)&lt;/P&gt;&lt;P&gt;- the name of the file has to be changed (if not I have permission denied)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2014 08:58:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-table-is-invisible-if-the-script-is-scheduled-with/m-p/23208#M25015</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2014-12-31T08:58:26Z</dc:date>
    </item>
  </channel>
</rss>

