<?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 table is loading with NULL values in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-is-loading-with-NULL-values/m-p/212847#M84389</link>
    <description>&lt;P&gt;CREATE TABLE IF NOT EXISTS employee (eid int, name String,&lt;BR /&gt;salary String)&lt;BR /&gt;STORED AS TEXTFILE;&lt;/P&gt;&lt;P&gt;LOAD DATA LOCAL INPATH '/user/hdadmin/sample.txt' OVERWRITE INTO TABLE employee;&lt;/P&gt;&lt;P&gt;Sample.txt&lt;/P&gt;&lt;P&gt;1201^AGopal^A45000&lt;BR /&gt;1202^AManisha^A45000&lt;BR /&gt;1203^AMasthanvali^A40000&lt;BR /&gt;1204^AKiran^A40000&lt;BR /&gt;1205^AKranthi^A30000&lt;/P&gt;&lt;P&gt;Both queries were executed successfully, but the table have only NULL values,&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;hive&amp;gt; select * from employee;&lt;BR /&gt;OK&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;Time taken: 0.148 seconds, Fetched: 5 row(s)&lt;/P&gt;&lt;P&gt;Please help me to fix this&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2018 11:32:24 GMT</pubDate>
    <dc:creator>sivasai2006</dc:creator>
    <dc:date>2018-10-17T11:32:24Z</dc:date>
    <item>
      <title>Hive table is loading with NULL values</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-is-loading-with-NULL-values/m-p/212847#M84389</link>
      <description>&lt;P&gt;CREATE TABLE IF NOT EXISTS employee (eid int, name String,&lt;BR /&gt;salary String)&lt;BR /&gt;STORED AS TEXTFILE;&lt;/P&gt;&lt;P&gt;LOAD DATA LOCAL INPATH '/user/hdadmin/sample.txt' OVERWRITE INTO TABLE employee;&lt;/P&gt;&lt;P&gt;Sample.txt&lt;/P&gt;&lt;P&gt;1201^AGopal^A45000&lt;BR /&gt;1202^AManisha^A45000&lt;BR /&gt;1203^AMasthanvali^A40000&lt;BR /&gt;1204^AKiran^A40000&lt;BR /&gt;1205^AKranthi^A30000&lt;/P&gt;&lt;P&gt;Both queries were executed successfully, but the table have only NULL values,&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;hive&amp;gt; select * from employee;&lt;BR /&gt;OK&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;NULL   NULL   NULL&lt;BR /&gt;Time taken: 0.148 seconds, Fetched: 5 row(s)&lt;/P&gt;&lt;P&gt;Please help me to fix this&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 11:32:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-is-loading-with-NULL-values/m-p/212847#M84389</guid>
      <dc:creator>sivasai2006</dc:creator>
      <dc:date>2018-10-17T11:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table is loading with NULL values</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-is-loading-with-NULL-values/m-p/212848#M84390</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/users/97233/sivasai2006.html"&gt;@Sivakumar Mahalingam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try creating your table like this instead;&lt;/P&gt;&lt;PRE&gt;CREATE TABLE IF NOT EXISTS employee2 (eid int, name String,salary String)
ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe' WITH SERDEPROPERTIES ("field.delim"="^A","line.delim" = '\n')
STORED AS TEXTFILE;&lt;/PRE&gt;&lt;P&gt;PS. If this helps to resolve your issue, please take a moment to click accept answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:36:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-is-loading-with-NULL-values/m-p/212848#M84390</guid>
      <dc:creator>JonathanSneep</dc:creator>
      <dc:date>2018-10-17T14:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table is loading with NULL values</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-is-loading-with-NULL-values/m-p/212849#M84391</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/84313/jsneep.html" nodeid="84313"&gt;@Jonathan Sneep&lt;/A&gt; I resolved the issue. It is due to typing the query in text editor and copied it to hive cli, the single quote was malformed.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 08:52:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-is-loading-with-NULL-values/m-p/212849#M84391</guid>
      <dc:creator>sivasai2006</dc:creator>
      <dc:date>2018-10-18T08:52:56Z</dc:date>
    </item>
  </channel>
</rss>

