Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-1370

AccumuloUtils can throw NPE when zookeeper or accumulo home is null

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.5
    • Component/s: None
    • Labels:

      Description

      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:

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              mdrob Mike Drob
              Reporter:
              jarcec Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: