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

TestImportJob getContent method doesn't work

    Details

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

      Description

      Example:

      try {
            int ret = Sqoop.runSqoop(importer, argv);
            assertTrue("Expected job to go through if target directory"
              + " does not exist.", 0 == ret);
            assertTrue(fs.exists(outputPath));
            // expecting one _SUCCESS file and one file containing data
            assertTrue("Expecting two files in the directory.",
                fs.listStatus(outputPath).length == 2);
            String[] output = getContent(conf, outputPath);
            assertEquals("Expected output and actual output should be same.", "meep\n",
                output[0]);
      
            ret = Sqoop.runSqoop(importer, argv);
            assertTrue("Expected job to go through if target directory exists.",
              0 == ret);
            assertTrue(fs.exists(outputPath));
            // expecting one _SUCCESS file and one file containing data
            assertTrue("Expecting two files in the directory.",
                fs.listStatus(outputPath).length == 2);
            output = getContent(conf, outputPath);
            assertEquals("Expected output and actual output should be same.", "meep\n",
                output[0]);
          } catch (Exception e) {
            // In debug mode, ImportException is wrapped in RuntimeException.
            LOG.info("Got exceptional return (expected: ok). msg is: " + e);
          }
      
      1. SQOOP-1362.0.patch
        4 kB
        Abraham Elmahrek

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop23 #1093 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/1093/)
          SQOOP-1362: TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc)

          • src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop23 #1093 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/1093/ ) SQOOP-1362 : TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc ) src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop20 #890 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/890/)
          SQOOP-1362: TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc)

          • src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop20 #890 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/890/ ) SQOOP-1362 : TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc ) src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop200 #896 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/896/)
          SQOOP-1362: TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc)

          • src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop200 #896 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/896/ ) SQOOP-1362 : TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc ) src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop100 #855 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/855/)
          SQOOP-1362: TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc)

          • src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop100 #855 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/855/ ) SQOOP-1362 : TestImportJob getContent method doesn't work' (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc ) src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
          Hide
          jarcec Jarek Jarcec Cecho added a comment -

          Thank you Abraham Elmahrek for the contribution and Gwen Shapira for the review!

          Show
          jarcec Jarek Jarcec Cecho added a comment - Thank you Abraham Elmahrek for the contribution and Gwen Shapira for the review!
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc in sqoop's branch refs/heads/trunk from Jarek Jarcec Cecho
          [ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=c0831f2 ]

          SQOOP-1362: TestImportJob getContent method doesn't work'

          (Abraham Elmahrek via Jarek Jarcec Cecho)

          Show
          jira-bot ASF subversion and git services added a comment - Commit c0831f20c0f8a43df95b85efa6f1a7a6fffd01cc in sqoop's branch refs/heads/trunk from Jarek Jarcec Cecho [ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=c0831f2 ] SQOOP-1362 : TestImportJob getContent method doesn't work' (Abraham Elmahrek via Jarek Jarcec Cecho)
          Hide
          jarcec Jarek Jarcec Cecho added a comment -

          Changing status to "Patch available", so that this will show up in the review queue.

          Show
          jarcec Jarek Jarcec Cecho added a comment - Changing status to "Patch available", so that this will show up in the review queue.

            People

            • Assignee:
              abec Abraham Elmahrek
              Reporter:
              abec Abraham Elmahrek
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development