sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-1048) Sqoop2: NPE when importing NULL value
Date Mon, 20 May 2013 14:27:17 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13662032#comment-13662032
] 

Hudson commented on SQOOP-1048:
-------------------------------

Integrated in Sqoop2-hadoop100 #286 (See [https://builds.apache.org/job/Sqoop2-hadoop100/286/])
    SQOOP-1048: Sqoop2: NPE when importing NULL value (Revision 61335e6e821c40dfa258c8000514c5d1040d1788)

     Result = FAILURE
jarcec : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=61335e6e821c40dfa258c8000514c5d1040d1788
Files : 
* connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcImportExtractor.java
* connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcConnectorConstants.java

                
> Sqoop2: NPE when importing NULL value 
> --------------------------------------
>
>                 Key: SQOOP-1048
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1048
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.99.2
>         Environment: Mysql DB
>            Reporter: Vasanth kumar RJ
>            Assignee: Vasanth kumar RJ
>             Fix For: 1.99.3
>
>         Attachments: SQOOP-1048.patch
>
>
> Throws NullPointerException when column value is NULL, since result set return null object.
> org.apache.sqoop.common.SqoopException: MAPRED_EXEC_0017:Error occurs during extractor
run
> 	at org.apache.sqoop.job.mr.SqoopMapper.run(SqoopMapper.java:94)
> 	at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
> 	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
> 	at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:396)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
> 	at org.apache.hadoop.mapred.Child.main(Child.java:249)
> Caused by: org.apache.sqoop.common.SqoopException: MAPRED_EXEC_0013:Cannot write to the
data writer
> 	at org.apache.sqoop.job.mr.SqoopMapper$MapDataWriter.writeContent(SqoopMapper.java:142)
> 	at org.apache.sqoop.job.mr.SqoopMapper$MapDataWriter.writeArrayRecord(SqoopMapper.java:124)
> 	at org.apache.sqoop.connector.jdbc.GenericJdbcImportExtractor.extract(GenericJdbcImportExtractor.java:60)
> 	at org.apache.sqoop.connector.jdbc.GenericJdbcImportExtractor.extract(GenericJdbcImportExtractor.java:31)
> 	at org.apache.sqoop.job.mr.SqoopMapper.run(SqoopMapper.java:89)
> 	... 7 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.sqoop.job.io.Data.hashCode(Data.java:140)
> 	at org.apache.hadoop.mapreduce.lib.partition.HashPartitioner.getPartition(HashPartitioner.java:29)
> 	at org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:691)
> 	at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
> 	at org.apache.sqoop.job.mr.SqoopMapper$MapDataWriter.writeContent(SqoopMapper.java:140)
> 	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message