sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-3015) nullpointException
Date Thu, 29 Sep 2016 03:21:20 GMT
yb created SQOOP-3015:
-------------------------

             Summary: nullpointException
                 Key: SQOOP-3015
                 URL: https://issues.apache.org/jira/browse/SQOOP-3015
             Project: Sqoop
          Issue Type: Wish
          Components: connectors
    Affects Versions: 1.99.4
         Environment: hadoop 2.6.0
sqoop2 1.99.4
            Reporter: yb
            Priority: Critical


i use sqoop2 export data from hdfs to mysql
while some data is null in HDFS 
and i use command like this "start job -jid 2" 
i got exception like this
Caused by: org.apache.sqoop.common.SqoopException: MAPRED_EXEC_0013:Cannot write to the data
writer
	at org.apache.sqoop.job.mr.SqoopMapper$SqoopMapDataWriter.writeContent(SqoopMapper.java:148)
	at org.apache.sqoop.job.mr.SqoopMapper$SqoopMapDataWriter.writeStringRecord(SqoopMapper.java:128)
	at org.apache.sqoop.connector.hdfs.HdfsExtractor.extractTextFile(HdfsExtractor.java:170)
	at org.apache.sqoop.connector.hdfs.HdfsExtractor.extractFile(HdfsExtractor.java:82)
	at org.apache.sqoop.connector.hdfs.HdfsExtractor.extract(HdfsExtractor.java:65)
	at org.apache.sqoop.connector.hdfs.HdfsExtractor.extract(HdfsExtractor.java:45)
	at org.apache.sqoop.job.mr.SqoopMapper.run(SqoopMapper.java:94)
	... 7 more
Caused by: java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Long.parseLong(Long.java:453)
	at java.lang.Long.valueOf(Long.java:540)
	at org.apache.sqoop.connector.idf.CSVIntermediateDataFormat.getObjectData(CSVIntermediateDataFormat.java:206)
	at org.apache.sqoop.job.mr.SqoopMapper$SqoopMapDataWriter.writeContent(SqoopMapper.java:143)
	... 13 more


i know i can resolve this by change source  code
can i resolve this NPE by other ways



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

Mime
View raw message