You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "RyanTotti (JIRA)" <ji...@apache.org> on 2016/01/18 06:24:39 UTC

[jira] [Created] (SQOOP-2793) Hitting a Null Pointer Exception when executing an lastmodified incremental job to import a table into HBASE.

RyanTotti created SQOOP-2793:
--------------------------------

             Summary: Hitting a Null Pointer Exception when executing an lastmodified incremental job to import a table into HBASE.
                 Key: SQOOP-2793
                 URL: https://issues.apache.org/jira/browse/SQOOP-2793
             Project: Sqoop
          Issue Type: Bug
          Components: hbase-integration, tools
    Affects Versions: 1.4.6, 1.4.5
            Reporter: RyanTotti


Sqoop command sample:
{code:xml}
sqoop job --create job3 -- import --connect --connect jdbc:mysql://mysqlserver:3306/test /
 --username root --password root /
 --query "SELECT ID as rowkey ,conf,created_time  FROM WF_ACTIONS WHERE \$CONDITIONS" /
 --columns rowkey,conf,created_time -m 1 /
 --hbase-table job3  --column-family info --hbase-row-key rowkey /
 --split-by ID --class-name job3  / 
 --check-column created_time --incremental lastmodified --last-value '2000-01-07 08:47:00' 
{code}
With exception:
{code:xml}
ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
java.lang.NullPointerException
	at org.apache.hadoop.fs.FileSystem.fixRelativePart(FileSystem.java:2207)
	at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1300)
	at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1424)
	at org.apache.sqoop.tool.ImportTool.initIncrementalConstraints(ImportTool.java:320)
	at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:488)
	at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
	at org.apache.sqoop.tool.JobTool.execJob(JobTool.java:228)
	at org.apache.sqoop.tool.JobTool.run(JobTool.java:283)
	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}







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