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

AccumuloUtils can throw NPE when zookeeper or accumulo home is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.4
    • 1.4.5
    • None

    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

        1. SQOOP-1370.patch.txt
          2 kB
          Mike Drob

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: