<?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 support for Line Terminator other than '\n' when creating table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99630#M12781</link>
    <description>&lt;P&gt;I have XML data in one of DB fields which has '\n' in it. So, I need to use an alternate Line Terminator. &lt;/P&gt;&lt;P&gt;I get following error when I try using a different one.&lt;/P&gt;&lt;P&gt;FAILED: SemanticException 13:20 LINES TERMINATED BY only supports newline '\n' right now. Error encountered near token '';''&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2015 22:50:39 GMT</pubDate>
    <dc:creator>vagarwal</dc:creator>
    <dc:date>2015-12-16T22:50:39Z</dc:date>
    <item>
      <title>Hive support for Line Terminator other than '\n' when creating table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99630#M12781</link>
      <description>&lt;P&gt;I have XML data in one of DB fields which has '\n' in it. So, I need to use an alternate Line Terminator. &lt;/P&gt;&lt;P&gt;I get following error when I try using a different one.&lt;/P&gt;&lt;P&gt;FAILED: SemanticException 13:20 LINES TERMINATED BY only supports newline '\n' right now. Error encountered near token '';''&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 22:50:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99630#M12781</guid>
      <dc:creator>vagarwal</dc:creator>
      <dc:date>2015-12-16T22:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hive support for Line Terminator other than '\n' when creating table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99631#M12782</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1471/vagarwal.html" nodeid="1471"&gt;@Virendra Agarwal&lt;/A&gt; have you considered using XML Serde? It supports line breaks natively and probably it will be easier to parse your XML data.&lt;/P&gt;&lt;P&gt;See this from &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hortonworks.com/articles/972/hive-and-xml-pasring.html"&gt;https://community.hortonworks.com/articles/972/hive-and-xml-pasring.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 23:29:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99631#M12782</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2015-12-16T23:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hive support for Line Terminator other than '\n' when creating table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99632#M12783</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1471/vagarwal.html" nodeid="1471"&gt;@Virendra Agarwal&lt;/A&gt;&lt;P&gt;A custom SerDe will work. While you can use custom serde like one explained in this article from &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/972/hive-and-xml-pasring.html"&gt;https://community.hortonworks.com/articles/972/hive-and-xml-pasring.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Look at below stack overflow discussion as well:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/27583736/lines-terminated-by-only-supports-newline-n-right-now"&gt;http://stackoverflow.com/questions/27583736/lines-...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But if at &lt;EM&gt;all&lt;/EM&gt; possible, it would be a great idea if you could migrate away from character separated files to a modern format like ORC or avro. You will gain in performance, benefit from complex structures and have a much more future proof data format. Load raw data into external table using SerDe but try to get the final resting place a managed table with an advanced file format, you'll be much happier in the long run. &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 00:35:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99632#M12783</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2015-12-17T00:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hive support for Line Terminator other than '\n' when creating table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99633#M12784</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/139/pardeepkumar.html" nodeid="139"&gt;@Pardeep&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a design pattern being developed at our organization wherein
 one of the scenarios is to load data from an Oracle database on to 
Hive. The Hive table is defined as ORC format with ZLIB compression.&lt;/P&gt;&lt;P&gt;However, there is an error occurring when the Oracle source contains 
data with newline '\n' characters within text columns. Also, when we 
attempt to change 'LINES TERMINTED BY' to anything other than '\n' it is
 not allowed.&lt;/P&gt;&lt;P&gt;Could you please elaborate on your statement - "migrate away from 
character separated files to a modern format like ORC or avro" ?&lt;/P&gt;&lt;P&gt;Any assistance or pseudocode will be much appreciated.&lt;/P&gt;&lt;P&gt;I could provide details on the configuration in use, if required.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 15:21:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-support-for-Line-Terminator-other-than-n-when-creating/m-p/99633#M12784</guid>
      <dc:creator>ajay_a_narasimh</dc:creator>
      <dc:date>2016-11-02T15:21:09Z</dc:date>
    </item>
  </channel>
</rss>

