<?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 Update - how to update a txt file in HDFS? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Update-how-to-update-a-txt-file-in-HDFS/m-p/166939#M25038</link>
    <description>&lt;P&gt;I have a txt file say elec.txt in my HDFS (Hadoop Distributed File System)&lt;/P&gt;&lt;P&gt;With the help of hadoop mapreduce and hive query I need to update the txt file&lt;/P&gt;&lt;P&gt;Is it possible to do so?&lt;/P&gt;&lt;P&gt;Is it possible to write a mapreduce program in hadoop to implement a HIVE Query?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2016 09:14:12 GMT</pubDate>
    <dc:creator>sridharbabu1138</dc:creator>
    <dc:date>2016-04-13T09:14:12Z</dc:date>
    <item>
      <title>Hive Update - how to update a txt file in HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Update-how-to-update-a-txt-file-in-HDFS/m-p/166939#M25038</link>
      <description>&lt;P&gt;I have a txt file say elec.txt in my HDFS (Hadoop Distributed File System)&lt;/P&gt;&lt;P&gt;With the help of hadoop mapreduce and hive query I need to update the txt file&lt;/P&gt;&lt;P&gt;Is it possible to do so?&lt;/P&gt;&lt;P&gt;Is it possible to write a mapreduce program in hadoop to implement a HIVE Query?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:14:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Update-how-to-update-a-txt-file-in-HDFS/m-p/166939#M25038</guid>
      <dc:creator>sridharbabu1138</dc:creator>
      <dc:date>2016-04-13T09:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Update - how to update a txt file in HDFS?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Update-how-to-update-a-txt-file-in-HDFS/m-p/166940#M25039</link>
      <description>&lt;P&gt;Hi Babu - It's more of a common approach to write out a new file.  HDFS is essentially an append only system so creating a new file that's a derivative of the original is a very common practice.  You can write a MR program to output a file or use a Hive query to output a query results to a new file.  For example, INSERT OVERWRITE DIRECTORY '/user/me/output' SELECT UPPER(myColumn) FROM myTable.  This would create a new file(s) with a modified change that's like an update.  In this case, we're upper casing the 'myColumn' in the myTable table.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:32:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Update-how-to-update-a-txt-file-in-HDFS/m-p/166940#M25039</guid>
      <dc:creator>ccasano</dc:creator>
      <dc:date>2016-04-13T09:32:25Z</dc:date>
    </item>
  </channel>
</rss>

