<?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 Storing Multiline character fields in hive table​ in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Storing-Multiline-character-fields-in-hive-table/m-p/114753#M77547</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to store multiline character fields in hive table. I tried using csv serde but the data is been shows as multiple records.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table description&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CREATE EXTERNAL TABLE &lt;/STRONG&gt;`serde_test1`(&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;  `num` &lt;STRONG&gt;string COMMENT &lt;/STRONG&gt;'from deserializer', &lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;  `name` &lt;STRONG&gt;string COMMENT &lt;/STRONG&gt;'from deserializer')&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ROW FORMAT SERDE &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;'com.bizo.hive.serde.csv.CSVSerde'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;
&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WITH SERDEPROPERTIES &lt;/STRONG&gt;( &lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;'quoteChar'='\"', &lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;'separatorChar'=',') &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STORED AS INPUTFORMAT &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;'org.apache.hadoop.mapred.TextInputFormat'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUTFORMAT &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;
&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOCATION &lt;/STRONG&gt;'HDFS location';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data that is stored in hive:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"300","test newline
add testings"&lt;/P&gt;&lt;P&gt;If I select from hive table it shows as NULLs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;serde_test1.num serde_test1.name
300  (null)
(null)  (null)&lt;/P&gt;&lt;P&gt;Anybody has any idea on how to store multi line fields in hive table?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2016 22:35:23 GMT</pubDate>
    <dc:creator>adadi</dc:creator>
    <dc:date>2016-04-25T22:35:23Z</dc:date>
  </channel>
</rss>

