Sqoop
  1. Sqoop
  2. SQOOP-855

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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)
      
      1. bugSQOOP-855.patch
        1 kB
        Jarek Jarcec Cecho

        Issue Links

          Activity

          Cheolsoo Park made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Jarek Jarcec Cecho made changes -
          Attachment bugSQOOP-855.patch [ 12567261 ]
          Jarek Jarcec Cecho made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 1.4.3 [ 12322644 ]
          Jarek Jarcec Cecho made changes -
          Field Original Value New Value
          Remote Link This issue links to "Review board (Web Link)" [ 11993 ]
          Jarek Jarcec Cecho created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development