<?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 Sqoop from Oracle to Hive  table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242860#M204659</link>
    <description>&lt;P&gt;
	Dear All,&lt;/P&gt;&lt;P&gt;
	I am using this sqoop command for importing Oracle Table into Hive Table &lt;/P&gt;&lt;P&gt;
	&lt;EM&gt;&lt;STRONG&gt;sqoop import --connect jdbc:oracle:thin:@123.123.123.112:1500:COL --username admin -P --table db.table1 --hive-import --hive-overwrite --create-hive-table --hive-database hive_db --hive-table table1 --split-by primary_Key&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;
	After Importing from oracle to Hive &lt;/P&gt;&lt;P&gt;
	Some rows and columns are entirely Showing 'NULL' .&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
	&lt;TD&gt;
		             &lt;STRONG&gt; ORACLE TABLE&lt;/STRONG&gt;
	&lt;/TD&gt;
	&lt;TD&gt;
		&lt;STRONG&gt;                          HIVE TABLE   -ISSUE&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
	&lt;TD&gt;1. PRIMARY_KEY (&lt;STRONG&gt;NOT NULL COLUMN&lt;/STRONG&gt;)&lt;BR /&gt;2. There is &lt;STRONG&gt;0 'NULL' &lt;/STRONG&gt;Value&lt;BR /&gt;
	&lt;/TD&gt;
	&lt;TD&gt;1. SOME ROWS AND COLUMNS ARE&lt;STRONG&gt; NULL&lt;/STRONG&gt;&lt;BR /&gt;2. &lt;STRONG&gt;35 NULL&lt;/STRONG&gt; (ROWS and COLUMS)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;&lt;P&gt;How to clear it?&lt;/P&gt;&lt;P&gt;
	&lt;EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 17:21:27 GMT</pubDate>
    <dc:creator>hariprasanthmad</dc:creator>
    <dc:date>2019-01-24T17:21:27Z</dc:date>
    <item>
      <title>Sqoop from Oracle to Hive  table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242860#M204659</link>
      <description>&lt;P&gt;
	Dear All,&lt;/P&gt;&lt;P&gt;
	I am using this sqoop command for importing Oracle Table into Hive Table &lt;/P&gt;&lt;P&gt;
	&lt;EM&gt;&lt;STRONG&gt;sqoop import --connect jdbc:oracle:thin:@123.123.123.112:1500:COL --username admin -P --table db.table1 --hive-import --hive-overwrite --create-hive-table --hive-database hive_db --hive-table table1 --split-by primary_Key&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;
	After Importing from oracle to Hive &lt;/P&gt;&lt;P&gt;
	Some rows and columns are entirely Showing 'NULL' .&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
	&lt;TD&gt;
		             &lt;STRONG&gt; ORACLE TABLE&lt;/STRONG&gt;
	&lt;/TD&gt;
	&lt;TD&gt;
		&lt;STRONG&gt;                          HIVE TABLE   -ISSUE&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
	&lt;TD&gt;1. PRIMARY_KEY (&lt;STRONG&gt;NOT NULL COLUMN&lt;/STRONG&gt;)&lt;BR /&gt;2. There is &lt;STRONG&gt;0 'NULL' &lt;/STRONG&gt;Value&lt;BR /&gt;
	&lt;/TD&gt;
	&lt;TD&gt;1. SOME ROWS AND COLUMNS ARE&lt;STRONG&gt; NULL&lt;/STRONG&gt;&lt;BR /&gt;2. &lt;STRONG&gt;35 NULL&lt;/STRONG&gt; (ROWS and COLUMS)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;&lt;P&gt;How to clear it?&lt;/P&gt;&lt;P&gt;
	&lt;EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:21:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242860#M204659</guid>
      <dc:creator>hariprasanthmad</dc:creator>
      <dc:date>2019-01-24T17:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop from Oracle to Hive  table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242861#M204660</link>
      <description>&lt;P&gt;I would suggest you to define field delimiter (--fields-terminated-by &amp;lt;char&amp;gt;). Looks like your data has values with comma (which is the default delimiter) and that is creating issues.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 07:41:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242861#M204660</guid>
      <dc:creator>sadusumilli</dc:creator>
      <dc:date>2019-01-25T07:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop from Oracle to Hive  table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242862#M204661</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/106166/dbavishnu.html" nodeid="106166"&gt;@Siva A&lt;/A&gt; Thankyou &lt;/P&gt;&lt;P&gt;field delimiter&lt;STRONG&gt; (--fields-terminated-by | )&lt;/STRONG&gt; and field delimiter &lt;STRONG&gt;(--fields-terminated-by ~)&lt;/STRONG&gt; used  '\020' Solved my issue&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 12:02:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242862#M204661</guid>
      <dc:creator>hariprasanthmad</dc:creator>
      <dc:date>2019-01-25T12:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop from Oracle to Hive  table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242863#M204662</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/106166/dbavishnu.html"&gt;@Siva A&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Try using the import control options, you can find them here - &lt;A href="https://sqoop.apache.org/docs/1.4.3/SqoopUserGuide.html"&gt;https://sqoop.apache.org/docs/1.4.3/SqoopUserGuide.html&lt;/A&gt;  e.g The &lt;CODE&gt;--null-string &lt;/CODE&gt;and  &lt;CODE&gt;--null-non-string&lt;/CODE&gt; arguments are optional.\ If not specified, then the string "null" will be used.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 09:27:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242863#M204662</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-01-26T09:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop from Oracle to Hive  table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242864#M204663</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;@Geoffrey Shelton Okot&lt;/A&gt;  tried your  answers&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;CODE&gt;--null-string &lt;/CODE&gt;and &lt;CODE&gt;--null-non-string   &lt;/CODE&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Still Facing Same Issues.&lt;/P&gt;&lt;P&gt;we are using oracle11g type DB and tables as source to hive as destination .Is there any Datatype kinds of issue is there?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:55:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242864#M204663</guid>
      <dc:creator>hariprasanthmad</dc:creator>
      <dc:date>2019-01-29T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop from Oracle to Hive  table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242865#M204664</link>
      <description>&lt;P&gt;&lt;EM&gt; &lt;A href="https://community.hortonworks.com/users/106166/dbavishnu.html"&gt;@Siva A&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sqoop will by default import NULL values as string null. Hive is, however, using string &lt;STRONG&gt;\N &lt;/STRONG&gt;to denote &lt;STRONG&gt;NULL&lt;/STRONG&gt; values and therefore predicates dealing with NULL (like IS NULL) will not work correctly. You should append parameters --null-string and --null-non-string in case of import job or &lt;STRONG&gt;--input-null-string&lt;/STRONG&gt; and &lt;STRONG&gt;--input-null-non-string&lt;/STRONG&gt; in case of an export job if you wish to properly preserve&lt;STRONG&gt; NULL&lt;/STRONG&gt; values. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Because sqoop is using those parameters in generated code, you need to properly escape value &lt;STRONG&gt;\N&lt;/STRONG&gt; to &lt;STRONG&gt;\N:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 06:10:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242865#M204664</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-02-02T06:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop from Oracle to Hive  table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242866#M204665</link>
      <description>&lt;P&gt;
	&lt;A rel="user" href="https://community.cloudera.com/users/106166/dbavishnu.html" nodeid="106166"&gt;@Siva A&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;&lt;/A&gt;&lt;EM&gt;--fields-terminated-by "\020" is solved this issue and i shared this details under idea.find the link below!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://How to avoid null value" target="_blank"&gt;https://community.hortonworks.com/content/idea/236981/how-to-avoid-null-values-and-extra-columns-during.html&lt;/A&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 12:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-from-Oracle-to-Hive-table/m-p/242866#M204665</guid>
      <dc:creator>hariprasanthmad</dc:creator>
      <dc:date>2019-02-06T12:33:09Z</dc:date>
    </item>
  </channel>
</rss>

