<?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 Can we delete data in a Hive table from spark-scala shell. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-delete-data-in-a-Hive-table-from-spark-scala-shell/m-p/110319#M16249</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Hive DB I got a table named "employee" with employee id as one field, &lt;/P&gt;&lt;P&gt;can I set HiveContext and delete data from Hive table() like below (if not what is the best way to do) &lt;/P&gt;&lt;P&gt;val sqlContext = new HiveContext(sc) &lt;/P&gt;&lt;P&gt;sqlContext.sql("DELETE FROM employee WHERE employee_id=6") &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:59:38 GMT</pubDate>
    <dc:creator>mohammed_sarfar</dc:creator>
    <dc:date>2022-09-16T09:59:38Z</dc:date>
    <item>
      <title>Can we delete data in a Hive table from spark-scala shell.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-delete-data-in-a-Hive-table-from-spark-scala-shell/m-p/110319#M16249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Hive DB I got a table named "employee" with employee id as one field, &lt;/P&gt;&lt;P&gt;can I set HiveContext and delete data from Hive table() like below (if not what is the best way to do) &lt;/P&gt;&lt;P&gt;val sqlContext = new HiveContext(sc) &lt;/P&gt;&lt;P&gt;sqlContext.sql("DELETE FROM employee WHERE employee_id=6") &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:59:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-delete-data-in-a-Hive-table-from-spark-scala-shell/m-p/110319#M16249</guid>
      <dc:creator>mohammed_sarfar</dc:creator>
      <dc:date>2022-09-16T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete data in a Hive table from spark-scala shell.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-delete-data-in-a-Hive-table-from-spark-scala-shell/m-p/110320#M16250</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2360/mohammed-sarfaraz.html" nodeid="2360"&gt;@mohammed sarfaraz&lt;/A&gt;&lt;P&gt;I don't think delete can be done and not supported. &lt;/P&gt;&lt;P&gt;You can create a new table without employee_id=6 &lt;/P&gt;&lt;P&gt;Please read &lt;A target="_blank" href="http://stackoverflow.com/questions/17810537/how-to-delete-and-update-a-record-in-hive"&gt;this&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://stackoverflow.com/questions/17810537/how-to-delete-and-update-a-record-in-hive"&gt;&lt;/A&gt;Hive is not RDBMS &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 21:05:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-delete-data-in-a-Hive-table-from-spark-scala-shell/m-p/110320#M16250</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-25T21:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete data in a Hive table from spark-scala shell.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-delete-data-in-a-Hive-table-from-spark-scala-shell/m-p/110321#M16251</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2360/mohammed-sarfaraz.html" nodeid="2360"&gt;@mohammed sarfaraz&lt;/A&gt; are you still having issues with this? Can you accept best answer or provide your workaround?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 09:36:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-delete-data-in-a-Hive-table-from-spark-scala-shell/m-p/110321#M16251</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T09:36:34Z</dc:date>
    </item>
  </channel>
</rss>

