sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-1370) AccumuloUtils can throw NPE when zookeeper or accumulo home is null
Date Thu, 17 Jul 2014 14:55:04 GMT

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

ASF subversion and git services commented on SQOOP-1370:
--------------------------------------------------------

Commit 9aac957b9c0e9f6c644df5cb529d5cd1a118dff8 in sqoop's branch refs/heads/trunk from [~jarcec]
[ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=9aac957 ]

SQOOP-1370: AccumuloUtils can throw NPE when zookeeper or accumulo home is null

(Mike Drob via Jarek Jarcec Cecho)


> AccumuloUtils can throw NPE when zookeeper or accumulo home is null
> -------------------------------------------------------------------
>
>                 Key: SQOOP-1370
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1370
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.4
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Mike Drob
>            Priority: Minor
>              Labels: newbie
>             Fix For: 1.4.5
>
>         Attachments: SQOOP-1370.patch.txt
>
>
> {{AccumuloUtils}} is creating a new {{File}} objects in method {{addJars}} using Accumulo
and Zookeeper home directory. However those variables can be null resulting in this ugly exception:
> {code}
> 14/07/11 12:26:35 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at java.io.File.<init>(File.java:277)
> 	at org.apache.sqoop.accumulo.AccumuloUtil.addJars(AccumuloUtil.java:114)
> 	at org.apache.sqoop.mapreduce.AccumuloImportJob.jobSetup(AccumuloImportJob.java:164)
> 	at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:245)
> 	at org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:614)
> 	at org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:118)
> 	at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:413)
> 	at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:506)
> 	at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> 	at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
> 	at org.apache.sqoop.Sqoop.runTool(Sqoop.java:222)
> 	at org.apache.sqoop.Sqoop.runTool(Sqoop.java:231)
> 	at org.apache.sqoop.Sqoop.main(Sqoop.java:240)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message