<?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 java.lang.NullPointerException  at org.apache.hive.hcatalog.data.schema.HCatSchema.get in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96044#M9467</link>
    <description>&lt;P&gt;HDP version: 2.3.0 upgraded from 2.2.4.2&lt;/P&gt;&lt;P&gt;A user reported his sqoop command fails if database column name and HCatalog column name are different.
If he uses same column names for both side, it works.
But he thinks &lt;B&gt;it used to work as long as the number of columns and column types match&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;Is this true?&lt;/P&gt;&lt;P&gt;The part of the error is:&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException 

at org.apache.hive.hcatalog.data.schema.HCatSchema.get(HCatSchema.java:105) 

at org.apache.sqoop.mapreduce.hcat.SqoopHCatUtilities.configureHCat(SqoopHCatUtilities.java:390)
 
at org.apache.sqoop.mapreduce.hcat.SqoopHCatUtilities.configureImportOutputFormat(SqoopHCatUtilities.java:783) 

at org.apache.sqoop.mapreduce.ImportJobBase.configureOutputFormat(ImportJobBase.java:98) 
 ...&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2015 15:35:36 GMT</pubDate>
    <dc:creator>hosako</dc:creator>
    <dc:date>2015-10-27T15:35:36Z</dc:date>
    <item>
      <title>java.lang.NullPointerException  at org.apache.hive.hcatalog.data.schema.HCatSchema.get</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96044#M9467</link>
      <description>&lt;P&gt;HDP version: 2.3.0 upgraded from 2.2.4.2&lt;/P&gt;&lt;P&gt;A user reported his sqoop command fails if database column name and HCatalog column name are different.
If he uses same column names for both side, it works.
But he thinks &lt;B&gt;it used to work as long as the number of columns and column types match&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;Is this true?&lt;/P&gt;&lt;P&gt;The part of the error is:&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException 

at org.apache.hive.hcatalog.data.schema.HCatSchema.get(HCatSchema.java:105) 

at org.apache.sqoop.mapreduce.hcat.SqoopHCatUtilities.configureHCat(SqoopHCatUtilities.java:390)
 
at org.apache.sqoop.mapreduce.hcat.SqoopHCatUtilities.configureImportOutputFormat(SqoopHCatUtilities.java:783) 

at org.apache.sqoop.mapreduce.ImportJobBase.configureOutputFormat(ImportJobBase.java:98) 
 ...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 15:35:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96044#M9467</guid>
      <dc:creator>hosako</dc:creator>
      <dc:date>2015-10-27T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NullPointerException  at org.apache.hive.hcatalog.data.schema.HCatSchema.get</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96045#M9468</link>
      <description>&lt;P&gt;what's the schema on the database side?&lt;/P&gt;&lt;P&gt;what's the schema on the hcatalog side?&lt;/P&gt;&lt;P&gt;what's the sqoop query?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 19:54:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96045#M9468</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-10-27T19:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NullPointerException  at org.apache.hive.hcatalog.data.schema.HCatSchema.get</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96046#M9469</link>
      <description>&lt;P&gt;ORACLE:&lt;/P&gt;&lt;PRE&gt;CREATE TABLE HAJIME.SQ_TEST
(
  COLUMN_NUMBER                  NUMBER(5,0),
  P_SC                           VARCHAR2(16 CHAR),
  P_YMDH                         NUMBER(14,0)
);
INSERT INTO HAJIME.SQ_TEST (P_YMDH, P_SC, COLUMN_NUMBER) VALUES (5, 't', 4);
INSERT INTO HAJIME.SQ_TEST (P_YMDH, P_SC, COLUMN_NUMBER) VALUES (2, 'jlfkooakywhsc', 1);
INSERT INTO HAJIME.SQ_TEST (P_YMDH, P_SC, COLUMN_NUMBER) VALUES (3, 'vp', 3);&lt;/PRE&gt;&lt;P&gt;HIVE:&lt;/P&gt;&lt;PRE&gt;create table sq_test (
 column_number       bigint,
 logacc_no           string,
 ymdh                bigint
);&lt;/PRE&gt;&lt;P&gt;SQOOP COMMAND:&lt;/P&gt;&lt;PRE&gt;sqoop import --verbose --username hajime --password ***** --connect jdbc:oracle:thin:@ORACLE_SERVER:SID --query "select * from hajime.SQ_TEST WHERE \$CONDITIONS" --split-by COLUMN_NUMBER --hcatalog-table sq_test&lt;/PRE&gt;&lt;P&gt;Then I get NullPointerException with the following error:&lt;/P&gt;&lt;P&gt;15/10/28 00:47:40 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Caught Exception checking database column p_sc in hcatalog table.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 07:52:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96046#M9469</guid>
      <dc:creator>hosako</dc:creator>
      <dc:date>2015-10-28T07:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NullPointerException  at org.apache.hive.hcatalog.data.schema.HCatSchema.get</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96047#M9470</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/206/hosako.html" nodeid="206"&gt;@Hajime&lt;/A&gt; Can you post the solution you used?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 10:00:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96047#M9470</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T10:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NullPointerException  at org.apache.hive.hcatalog.data.schema.HCatSchema.get</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96048#M9471</link>
      <description>&lt;P&gt;Looks like if I wanted to use HCat, the column names need to match...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 01:46:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-lang-NullPointerException-at-org-apache-hive-hcatalog/m-p/96048#M9471</guid>
      <dc:creator>hosako</dc:creator>
      <dc:date>2016-02-04T01:46:33Z</dc:date>
    </item>
  </channel>
</rss>

