Sqoop
  1. Sqoop
  2. SQOOP-1261

CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x

    Details

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

      Hadoop 2.x

      Description

      The CompilationManager when compiling the generated Java file tries to add jar files that have JobConf fails if they are in the classpath, failing which adds hadoop-core.jar. hadoop-core.jar is not part of Hadoop 2.x. We need to add hadoop-common.jar and hadoop-mapred-client-core.jar

      This situation is exasperated on Windows where the classpath presented to Sqoop actions under oozie does not have the full path but a uber jar because of command line length limitations and oozie sqoop jobs fail while compiling the generated jar files

      1. SQOOP-1261.patch
        3 kB
        Venkat Ranganathan

        Issue Links

          Activity

          Hide
          ASF subversion and git services added a comment -

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

          SQOOP-1261: CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x

          (Venkat Ranganathan via Jarek Jarcec Cecho)

          Show
          ASF subversion and git services added a comment - Commit 28f415ff2f20f63e19b3c52a0e53ca566d03bac5 in branch refs/heads/trunk from Jarek Jarcec Cecho [ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=28f415f ] SQOOP-1261 : CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (Venkat Ranganathan via Jarek Jarcec Cecho)
          Hide
          Jarek Jarcec Cecho added a comment -

          Thank you for your contribution Venkat Ranganathan!

          Show
          Jarek Jarcec Cecho added a comment - Thank you for your contribution Venkat Ranganathan !
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop20 #866 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/866/)
          SQOOP-1261: CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=28f415ff2f20f63e19b3c52a0e53ca566d03bac5)

          • src/java/org/apache/sqoop/orm/CompilationManager.java
          Show
          Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop20 #866 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/866/ ) SQOOP-1261 : CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=28f415ff2f20f63e19b3c52a0e53ca566d03bac5 ) src/java/org/apache/sqoop/orm/CompilationManager.java
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop23 #1068 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/1068/)
          SQOOP-1261: CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=28f415ff2f20f63e19b3c52a0e53ca566d03bac5)

          • src/java/org/apache/sqoop/orm/CompilationManager.java
          Show
          Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop23 #1068 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/1068/ ) SQOOP-1261 : CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=28f415ff2f20f63e19b3c52a0e53ca566d03bac5 ) src/java/org/apache/sqoop/orm/CompilationManager.java
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop200 #872 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/872/)
          SQOOP-1261: CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=28f415ff2f20f63e19b3c52a0e53ca566d03bac5)

          • src/java/org/apache/sqoop/orm/CompilationManager.java
          Show
          Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop200 #872 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/872/ ) SQOOP-1261 : CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=28f415ff2f20f63e19b3c52a0e53ca566d03bac5 ) src/java/org/apache/sqoop/orm/CompilationManager.java
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop100 #831 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/831/)
          SQOOP-1261: CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=28f415ff2f20f63e19b3c52a0e53ca566d03bac5)

          • src/java/org/apache/sqoop/orm/CompilationManager.java
          Show
          Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop100 #831 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/831/ ) SQOOP-1261 : CompilationManager should add Hadoop 2.x libraries to the classpath under Hadoop 2.x (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=28f415ff2f20f63e19b3c52a0e53ca566d03bac5 ) src/java/org/apache/sqoop/orm/CompilationManager.java

            People

            • Assignee:
              Venkat Ranganathan
              Reporter:
              Venkat Ranganathan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development