Sqoop
  1. Sqoop
  2. SQOOP-505

Trailing space after jar in managers.d/connectors causes file not found

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.1-incubating
    • Fix Version/s: 1.4.2
    • Component/s: connectors
    • Labels:
      None
    • Environment:

      CentOS 6.2

      Description

      A trailing space in /usr/lib/sqoop/conf/managers.d/connectors causes the following error. Easy workaround, obviously, but that sure was frustrating to figure out...

      12/06/19 22:08:52 ERROR security.UserGroupInformation: PriviledgedActionException as:developer (auth:SIMPLE) cause:java.io.FileNotFoundException: File file:/usr/lib/sqoop-nz-connector-1.0.5/sqoop-nz-connector-1.0.5.jar does not exist
      12/06/19 22:08:52 ERROR tool.ImportTool: Encountered IOException running import job: java.io.FileNotFoundException: File file:/usr/lib/sqoop-nz-connector-1.0.5/sqoop-nz-connector-1.0.5.jar does not exist
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:449)
      at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:381)
      at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:231)
      at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:183)
      at org.apache.hadoop.mapreduce.JobSubmitter.copyRemoteFiles(JobSubmitter.java:129)
      at org.apache.hadoop.mapreduce.JobSubmitter.copyAndConfigureFiles(JobSubmitter.java:202)
      at org.apache.hadoop.mapreduce.JobSubmitter.copyAndConfigureFiles(JobSubmitter.java:284)
      at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:355)
      at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1226)
      at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1223)
      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:1232)
      at org.apache.hadoop.mapreduce.Job.submit(Job.java:1223)
      at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1244)
      at org.apache.sqoop.mapreduce.ImportJobBase.runJob(ImportJobBase.java:141)
      at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:201)
      at org.apache.sqoop.manager.SqlManager.importQuery(SqlManager.java:509)
      at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:405)
      at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:476)
      at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
      at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
      at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
      at org.apache.sqoop.Sqoop.main(Sqoop.java:238)
      at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)

      Here's the content of connectors:
      com.cloudera.sqoop.manager.NetezzaManagerFactory=/usr/lib/sqoop-nz-connector-1.0.5/sqoop-nz-connector-1.0.5.jar

      1. SQOOP-505.patch
        1 kB
        Cheolsoo Park
      2. SQOOP-505.patch
        1 kB
        Cheolsoo Park

        Activity

        Abhijeet Gaikwad made changes -
        Fix Version/s 1.4.2 [ 12320141 ]
        Hide
        Hudson added a comment -

        Integrated in Sqoop-ant-jdk-1.6 #123 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6/123/)
        SQOOP-505 Handle trailing space in managers.d/connectors (Revision 1352359)

        Result = SUCCESS
        blee :
        Files :

        • /sqoop/trunk/src/java/org/apache/sqoop/ConnFactory.java
        Show
        Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6 #123 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6/123/ ) SQOOP-505 Handle trailing space in managers.d/connectors (Revision 1352359) Result = SUCCESS blee : Files : /sqoop/trunk/src/java/org/apache/sqoop/ConnFactory.java
        Bilung Lee made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Bilung Lee added a comment -

        Patch is committed. Thanks!

        Show
        Bilung Lee added a comment - Patch is committed. Thanks!
        Cheolsoo Park made changes -
        Attachment SQOOP-505.patch [ 12532780 ]
        Cheolsoo Park made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Cheolsoo Park added a comment -
        Show
        Cheolsoo Park added a comment - Review board: https://reviews.apache.org/r/5432/
        Cheolsoo Park made changes -
        Assignee Cheolsoo Park [ cheolsoo ]
        Cheolsoo Park made changes -
        Field Original Value New Value
        Attachment SQOOP-505.patch [ 12532661 ]
        Devon Crouse created issue -

          People

          • Assignee:
            Cheolsoo Park
            Reporter:
            Devon Crouse
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development