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

pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.3
    • Component/s: None
    • Labels:
      None

      Description

      Following NPE will be thrown in case that user specify invalid path in "pgbulkload.bin" property.

      java.lang.NullPointerException
      	at org.apache.sqoop.mapreduce.PGBulkloadExportMapper.cleanup(PGBulkloadExportMapper.java:203)
      	at org.apache.sqoop.mapreduce.PGBulkloadExportMapper.setup(PGBulkloadExportMapper.java:173)
      	at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:138)
      	at org.apache.sqoop.mapreduce.AutoProgressMapper.run(AutoProgressMapper.java:64)
      	at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:673)
      	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:331)
      	at org.apache.hadoop.mapred.Child$4.run(Child.java:268)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:396)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1372)
      	at org.apache.hadoop.mapred.Child.main(Child.java:262)
      

        Attachments

        1. bugSQOOP-855.patch
          1 kB
          Jarek Jarcec Cecho

          Issue Links

            Activity

              People

              • Assignee:
                jarcec Jarek Jarcec Cecho
                Reporter:
                jarcec Jarek Jarcec Cecho
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: