sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siba Prasad Mishra (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-3379) Using option sqoop.jobbase.serialize.sqoopoptions=true gives NullPointerException
Date Tue, 04 Sep 2018 09:24:00 GMT

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

Siba Prasad Mishra updated SQOOP-3379:
--------------------------------------
    Priority: Major  (was: Minor)

> Using option sqoop.jobbase.serialize.sqoopoptions=true gives NullPointerException
> ---------------------------------------------------------------------------------
>
>                 Key: SQOOP-3379
>                 URL: https://issues.apache.org/jira/browse/SQOOP-3379
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.7
>         Environment: Sqoop 1.4.7 on EMR (This happens in Sqoop 1.4.7)
>            Reporter: Siba Prasad Mishra
>            Priority: Major
>
> Using option sqoop.jobbase.serialize.sqoopoptions to serialize all sqoop options to
hadoop configuration throws Null Pointer Exception when we run sqoop command. 
> Given below the stack trace:
> 18/09/03 06:56:34 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
> java.lang.NullPointerException
>         at org.json.JSONObject.<init>(JSONObject.java:144)
>         at org.apache.sqoop.util.SqoopJsonUtil.getJsonStringforMap(SqoopJsonUtil.java:43)
>         at org.apache.sqoop.SqoopOptions.writeProperties(SqoopOptions.java:785)
>         at org.apache.sqoop.mapreduce.JobBase.putSqoopOptionsToConfiguration(JobBase.java:392)
>         at org.apache.sqoop.mapreduce.JobBase.createJob(JobBase.java:378)
>         at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:253)
>         at org.apache.sqoop.manager.SqlManager.importQuery(SqlManager.java:748)
>         at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:522)
>         at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:628)
>         at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>         at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
>         at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
>         at org.apache.sqoop.Sqoop.runTool(Sqoop.java:243)
>         at org.apache.sqoop.Sqoop.main(Sqoop.java:252)
>  
> Looks like there is no null checking while serializing customToolOptions.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message