<?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: How to drop delimiter in hive table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168160#M130490</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/10486/simrank.html" nodeid="10486"&gt;@Simran Kaur&lt;/A&gt;&lt;P&gt;Hive CSV serde is built on Open CSV which support all basic csv type operations. Basically, to design the serde based on the type of data within the csv file. Refer to below link for details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://opencsv.sourceforge.net/" target="_blank"&gt;http://opencsv.sourceforge.net/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2016 16:04:02 GMT</pubDate>
    <dc:creator>ssubhas</dc:creator>
    <dc:date>2016-08-08T16:04:02Z</dc:date>
    <item>
      <title>How to drop delimiter in hive table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168156#M130486</link>
      <description>&lt;P&gt;1. I download the file using download.file function in R &lt;/P&gt;&lt;P&gt;2. Save it locally &lt;/P&gt;&lt;P&gt;3. Move it to HDFS&lt;/P&gt;&lt;P&gt;
My hive table is mapped to this location of file in HDFS. Now, this file has `,` as the delimiter/separator which I cannot change using download.file function from R.&lt;/P&gt;&lt;P&gt;
There is a field that has `,` in its content. How do I tell hive to drop this delimiter if found anywhere within the field contents?
I understand we can change the delimiter but is there really a way I can drop it like sqoop allows us to do?
My R script is as simple as&lt;/P&gt;&lt;P&gt; 
    download.file() &lt;/P&gt;&lt;P&gt;    hdfs.put &lt;/P&gt;&lt;P&gt;Is there a workaround?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 13:33:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168156#M130486</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-08-08T13:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop delimiter in hive table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168157#M130487</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10486/simrank.html" nodeid="10486"&gt;@Simran Kaur&lt;/A&gt;&lt;P&gt;To handle the delimiters within the data, you can create a table as "ROW FORMAT DELIMITED FIELDS TERMINATED BY "," ESCAPED BY '\\';" which will handle the data “1,some text\, with comma in it,123,more text”.&lt;/P&gt;&lt;P&gt;Also, you can have hive table with CSV serde. Please refer to below link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ogrodnek/csv-serde" target="_blank"&gt;https://github.com/ogrodnek/csv-serde&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 13:46:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168157#M130487</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-08-08T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop delimiter in hive table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168158#M130488</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;: Thanks. Could you please tell what would be exactly an Alter table command? I have an existing table created over  the file using hue and shall alter it to update for the changes.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 13:48:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168158#M130488</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-08-08T13:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop delimiter in hive table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168159#M130489</link>
      <description>&lt;P&gt;Oh, I got it.Could you please explain what exactly is CSV serde and how does it work?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 14:03:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168159#M130489</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-08-08T14:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop delimiter in hive table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168160#M130490</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10486/simrank.html" nodeid="10486"&gt;@Simran Kaur&lt;/A&gt;&lt;P&gt;Hive CSV serde is built on Open CSV which support all basic csv type operations. Basically, to design the serde based on the type of data within the csv file. Refer to below link for details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://opencsv.sourceforge.net/" target="_blank"&gt;http://opencsv.sourceforge.net/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 16:04:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-drop-delimiter-in-hive-table/m-p/168160#M130490</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-08-08T16:04:02Z</dc:date>
    </item>
  </channel>
</rss>

