sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Jarcec Cecho (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SQOOP-1826) NPE in ImportTool.lastModifiedMerge during postgres import
Date Mon, 05 Jan 2015 07:09:34 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jarek Jarcec Cecho reassigned SQOOP-1826:
-----------------------------------------

    Assignee: Ricky Nguyen

> 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
>            Assignee: Ricky Nguyen
>         Attachments: sqoop-1826.patch
>
>
> 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