<?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: Sqoop DB2 Import with BLOB Datatype (Has XML Data) to Hive Table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/299576#M219749</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/32119"&gt;@VidyaSargur&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. You are totally right. I only realized that this is an older thread after I had already posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore I already created a new thread (&lt;A href="https://community.cloudera.com/t5/Support-Questions/Permanently-store-sqoop-map-column-hive-mapping-for-DB2/td-p/299556" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Permanently-store-sqoop-map-column-hive-mapping-for-DB2/td-p/299556&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 07:54:48 GMT</pubDate>
    <dc:creator>Muffex</dc:creator>
    <dc:date>2020-07-13T07:54:48Z</dc:date>
    <item>
      <title>Sqoop DB2 Import with BLOB Datatype (Has XML Data) to Hive Table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/116188#M78982</link>
      <description>&lt;P&gt;I am trying to import a DB2 Table into Hive which is having a field defined as BLOB datatype which will have XML stored in it.&lt;/P&gt;&lt;P&gt;But getting the below error. Is there any workaround?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Import Script&lt;/STRONG&gt;:
sqoop import --connect jdbc:db2://smatest.os390.allmerica.com:4104/SMATEST --username ******** --password ******** --table HNDBD034.T3T02T_RATE_TXN_XML_LOG --split-by ID -m 1 --hive-import; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Logs&lt;/STRONG&gt;:
16/08/23 14:08:39 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.4.2.0-258
16/08/23 14:08:39 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
16/08/23 14:08:39 INFO tool.BaseSqoopTool: Using Hive-specific delimiters for output. You can override
16/08/23 14:08:39 INFO tool.BaseSqoopTool: delimiters with --fields-terminated-by, etc.
16/08/23 14:08:39 INFO manager.SqlManager: Using default fetchSize of 1000
16/08/23 14:08:39 INFO tool.CodeGenTool: Beginning code generation
16/08/23 14:08:40 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM HNDBD034.T3T02T_RATE_TXN_XML_LOG AS t WHERE 1=0
16/08/23 14:08:40 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM HNDBD034.T3T02T_RATE_TXN_XML_LOG AS t WHERE 1=0
16/08/23 14:08:40 ERROR orm.ClassWriter: Cannot resolve SQL type 2009
16/08/23 14:08:40 ERROR orm.ClassWriter: Cannot resolve SQL type 2009
16/08/23 14:08:40 ERROR orm.ClassWriter: Cannot resolve SQL type 2009
16/08/23 14:08:40 ERROR orm.ClassWriter: Cannot resolve SQL type 2009
16/08/23 14:08:40 ERROR orm.ClassWriter: Cannot resolve SQL type 2009
16/08/23 14:08:40 ERROR orm.ClassWriter: Cannot resolve SQL type 2009
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RQ_STRING_TXT
16/08/23 14:08:40 ERROR orm.ClassWriter: No Java type for SQL type 2009 for column XML_RS_STRING_TXT
16/08/23 14:08:40 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.sqoop.orm.ClassWriter.parseNullVal(ClassWriter.java:1377)
        at org.apache.sqoop.orm.ClassWriter.parseColumn(ClassWriter.java:1402)
        at org.apache.sqoop.orm.ClassWriter.myGenerateParser(ClassWriter.java:1528)
        at org.apache.sqoop.orm.ClassWriter.generateParser(ClassWriter.java:1491)
        at org.apache.sqoop.orm.ClassWriter.generateClassForColumns(ClassWriter.java:1932)
        at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1736)
        at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
        at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
        at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
        at org.apache.sqoop.Sqoop.run(Sqoop.java:148)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:184)
        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:226)
        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:235)
        at org.apache.sqoop.Sqoop.main(Sqoop.java:244)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 01:50:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/116188#M78982</guid>
      <dc:creator>asoundarara</dc:creator>
      <dc:date>2016-08-24T01:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop DB2 Import with BLOB Datatype (Has XML Data) to Hive Table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/116189#M78983</link>
      <description>&lt;P&gt;try including this option&lt;/P&gt;&lt;P&gt;–map-column-java blob_column_name=String,clob_column_name=String &lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 02:58:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/116189#M78983</guid>
      <dc:creator>sbomma</dc:creator>
      <dc:date>2016-08-25T02:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop DB2 Import with BLOB Datatype (Has XML Data) to Hive Table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/116190#M78984</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11363/asoundarara.html"&gt;AravinthRaj Soundararajan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As part of the import, you need to determine data type mappings. There are a number of data types that will not get implicitly converted to Hive. As @&lt;A href="https://community.hortonworks.com/users/10566/sbomma.html"&gt;Satish Bomma&lt;/A&gt; suggested, you need to explicitly help sqoop to use a target data type.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 02:07:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/116190#M78984</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-08-27T02:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop DB2 Import with BLOB Datatype (Has XML Data) to Hive Table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/299555#M219737</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am importing a DB2 database with Sqoop to Hive. Is there any way to permanently store mappings for specific types? I am importing several tables that contain "Character" columns which all have to be mapped manually. I want to permanently store that "Character" is stored as "Varchar".&lt;BR /&gt;Can this be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 12:03:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/299555#M219737</guid>
      <dc:creator>Muffex</dc:creator>
      <dc:date>2020-07-12T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop DB2 Import with BLOB Datatype (Has XML Data) to Hive Table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/299574#M219747</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69195"&gt;@Muffex&lt;/a&gt;, As this is an older post, you would have a better chance of receiving a resolution by s&lt;A href="https://community.cloudera.com/t5/forums/postpage/board-id/Questions" target="_self"&gt;tarting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 07:24:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/299574#M219747</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2020-07-13T07:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop DB2 Import with BLOB Datatype (Has XML Data) to Hive Table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/299576#M219749</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/32119"&gt;@VidyaSargur&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your answer. You are totally right. I only realized that this is an older thread after I had already posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore I already created a new thread (&lt;A href="https://community.cloudera.com/t5/Support-Questions/Permanently-store-sqoop-map-column-hive-mapping-for-DB2/td-p/299556" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Permanently-store-sqoop-map-column-hive-mapping-for-DB2/td-p/299556&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 07:54:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-DB2-Import-with-BLOB-Datatype-Has-XML-Data-to-Hive/m-p/299576#M219749</guid>
      <dc:creator>Muffex</dc:creator>
      <dc:date>2020-07-13T07:54:48Z</dc:date>
    </item>
  </channel>
</rss>

