Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-505

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.1-incubating
    • 1.4.2
    • connectors
    • None
    • 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

      Attachments

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

        Activity

          People

            cheolsoo Cheolsoo Park
            devoncrouse@gmail.com Devon Crouse
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: