sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricky Nguyen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-1826) NPE in ImportTool.lastModifiedMerge during postgres import
Date Mon, 01 Dec 2014 22:46:13 GMT
Ricky Nguyen created SQOOP-1826:
-----------------------------------

             Summary: NPE in ImportTool.lastModifiedMerge during postgres import
                 Key: SQOOP-1826
                 URL: https://issues.apache.org/jira/browse/SQOOP-1826
             Project: Sqoop
          Issue Type: Bug
    Affects Versions: 1.4.5
            Reporter: Ricky Nguyen


Stacktrace:

{code}
java.lang.NullPointerException
	at org.apache.sqoop.tool.ImportTool.lastModifiedMerge(ImportTool.java:436)
	at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:506)
	at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:601)
	at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
	at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
	at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
	at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
	at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
{code}

here are the relevant args in my options file:

{code}
import
--direct
--warehouse-dir
warehouse/
--incremental
lastmodified
--check-column
updated_at
--merge-key
id
{code}

Seems like {{context.getConnManager()}} is returning null because {{DirectPostgresqlManager#importTable}}
never calls {{context.setConnManager(this)}} in a similar way to {{DirectMySQLManager#importTable}}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message