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

          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop100 #537 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/537/)
          SQOOP-855: pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary (Revision 0488503a3a1af4fc7b7679e3f3457bf988c18701)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0488503a3a1af4fc7b7679e3f3457bf988c18701
          Files :

          • src/java/org/apache/sqoop/mapreduce/PGBulkloadExportMapper.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop100 #537 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/537/ ) SQOOP-855 : pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary (Revision 0488503a3a1af4fc7b7679e3f3457bf988c18701) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0488503a3a1af4fc7b7679e3f3457bf988c18701 Files : src/java/org/apache/sqoop/mapreduce/PGBulkloadExportMapper.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop200 #536 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/536/)
          SQOOP-855: pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary (Revision 0488503a3a1af4fc7b7679e3f3457bf988c18701)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0488503a3a1af4fc7b7679e3f3457bf988c18701
          Files :

          • src/java/org/apache/sqoop/mapreduce/PGBulkloadExportMapper.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop200 #536 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/536/ ) SQOOP-855 : pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary (Revision 0488503a3a1af4fc7b7679e3f3457bf988c18701) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0488503a3a1af4fc7b7679e3f3457bf988c18701 Files : src/java/org/apache/sqoop/mapreduce/PGBulkloadExportMapper.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop20 #536 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/536/)
          SQOOP-855: pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary (Revision 0488503a3a1af4fc7b7679e3f3457bf988c18701)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0488503a3a1af4fc7b7679e3f3457bf988c18701
          Files :

          • src/java/org/apache/sqoop/mapreduce/PGBulkloadExportMapper.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop20 #536 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/536/ ) SQOOP-855 : pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary (Revision 0488503a3a1af4fc7b7679e3f3457bf988c18701) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0488503a3a1af4fc7b7679e3f3457bf988c18701 Files : src/java/org/apache/sqoop/mapreduce/PGBulkloadExportMapper.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop23 #731 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/731/)
          SQOOP-855: pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary (Revision 0488503a3a1af4fc7b7679e3f3457bf988c18701)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0488503a3a1af4fc7b7679e3f3457bf988c18701
          Files :

          • src/java/org/apache/sqoop/mapreduce/PGBulkloadExportMapper.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop23 #731 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/731/ ) SQOOP-855 : pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary (Revision 0488503a3a1af4fc7b7679e3f3457bf988c18701) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0488503a3a1af4fc7b7679e3f3457bf988c18701 Files : src/java/org/apache/sqoop/mapreduce/PGBulkloadExportMapper.java
          Hide
          Cheolsoo Park added a comment -

          Committed to trunk. Thanks Jarcec!

          Show
          Cheolsoo Park added a comment - Committed to trunk. Thanks Jarcec!
          Hide
          Cheolsoo Park added a comment -

          +1. LGTM.

          Show
          Cheolsoo Park added a comment - +1. LGTM.

            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