<?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: Not able to view inserted data using spark in hive tables in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136054#M98705</link>
    <description>&lt;P&gt;I know the tutorial at &lt;A href="http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_6" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_6&lt;/A&gt; does this slightly different as they have the Spark code save a DF as an ORC file (step 4.5.2) and then they run a Hive LOAD command (step 4.5.3), but your INSERT-AS-SELECT model sounds like it should work.  Maybe someone could test it out if you supplied a simple working example of what you have so they could try to resolve the issue for you.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 05:48:39 GMT</pubDate>
    <dc:creator>LesterMartin</dc:creator>
    <dc:date>2016-07-20T05:48:39Z</dc:date>
    <item>
      <title>Not able to view inserted data using spark in hive tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136053#M98704</link>
      <description>&lt;P&gt;I am using sandbox image and trying to insert data into hive using spark&lt;/P&gt;&lt;P&gt;Following steps I have done&lt;/P&gt;&lt;P&gt;1.loading hdfs csv file and created dataframe&lt;/P&gt;&lt;P&gt;2.register the temp table on dataframe&lt;/P&gt;&lt;P&gt;3.create table in hive using hivecontext&lt;/P&gt;&lt;P&gt;4.insert data from temp table into new created hive table &lt;/P&gt;&lt;P&gt;Issue: code running without any error but when trying to view insert data into hive then it showing no records&lt;/P&gt;&lt;P&gt;when executing query(select * from newtable) using hivecontext then dataframe contain data.&lt;/P&gt;&lt;P&gt;ps- My code is running on windows server and connecting sandbox environment then facing issue but when I am running my code on MacBook with sandbox image and execute the same code then hive table showing the data.&lt;/P&gt;&lt;P&gt;I am not able to figure out what can be cause.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:07:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136053#M98704</guid>
      <dc:creator>payal_patel</dc:creator>
      <dc:date>2016-07-19T19:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to view inserted data using spark in hive tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136054#M98705</link>
      <description>&lt;P&gt;I know the tutorial at &lt;A href="http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_6" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_6&lt;/A&gt; does this slightly different as they have the Spark code save a DF as an ORC file (step 4.5.2) and then they run a Hive LOAD command (step 4.5.3), but your INSERT-AS-SELECT model sounds like it should work.  Maybe someone could test it out if you supplied a simple working example of what you have so they could try to resolve the issue for you.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 05:48:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136054#M98705</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2016-07-20T05:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to view inserted data using spark in hive tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136055#M98706</link>
      <description>&lt;P style="margin-left: 40px;"&gt;  &lt;A rel="user" href="https://community.cloudera.com/users/11951/payalpatel.html" nodeid="11951"&gt;@payal patel&lt;/A&gt; Do you have any tables in hive?  can you do a quick test and check if you are able to query those tables?  if so can you try and insert into one of those?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 10:11:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136055#M98706</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-20T10:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to view inserted data using spark in hive tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136056#M98707</link>
      <description>&lt;P&gt;Thanks. I have hive table and able to view data.&lt;/P&gt;&lt;P&gt;I found two issues and resolved  one issue&lt;/P&gt;&lt;P&gt;-host file contain different hostname against ip and my code was pointing directly using ipaddress. corrected ipaddress in host file &lt;/P&gt;&lt;P&gt;-remove partitionBy statement from create table statement.&lt;/P&gt;&lt;P&gt;Now looking into why partitionBy causing issue.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 19:11:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136056#M98707</guid>
      <dc:creator>payal_patel</dc:creator>
      <dc:date>2016-07-20T19:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to view inserted data using spark in hive tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136057#M98708</link>
      <description>&lt;P&gt;Thanks..I'll lookinto it&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 19:12:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136057#M98708</guid>
      <dc:creator>payal_patel</dc:creator>
      <dc:date>2016-07-20T19:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to view inserted data using spark in hive tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136058#M98709</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/11951/payalpatel.html" nodeid="11951"&gt;@payal patel&lt;/A&gt; please add this to your script and try once again.&lt;/P&gt;&lt;PRE&gt;hiveContext.setConf("hive.exec.dynamic.partition", "true")
hiveContext.setConf("hive.exec.dynamic.partition.mode", "nonstrict")&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jul 2016 22:25:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136058#M98709</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-20T22:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to view inserted data using spark in hive tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136059#M98710</link>
      <description>&lt;P&gt;Thanks its working fine now..able to view partitioned data in hive&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 17:09:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-view-inserted-data-using-spark-in-hive-tables/m-p/136059#M98710</guid>
      <dc:creator>payal_patel</dc:creator>
      <dc:date>2016-07-21T17:09:06Z</dc:date>
    </item>
  </channel>
</rss>

