orm.CompilationManager: Could not rename /tmp/sqoop-oracle/compile/95f371afda8b0247e432776caf5d5f4a/SQOOP_test.java to /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/etc/sqoop/conf.dist/./SQOOP_test.java java.io.FileNotFoundException: /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/etc/sqoop/conf.dist/./SQOOP_test.java (Permission denied)

sqoop-user | Abraham Elmahrek | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: Sqoop to HDFS error Cannot initialize cluster

    sqoop-user | 3 years ago | Abraham Elmahrek
    orm.CompilationManager: Could not rename /tmp/sqoop-oracle/compile/95f371afda8b0247e432776caf5d5f4a/SQOOP_test.java to /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/etc/sqoop/conf.dist/./SQOOP_test.java java.io.FileNotFoundException: /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/etc/sqoop/conf.dist/./SQOOP_test.java (Permission denied)
  2. 0

    Re: Sqoop to HDFS error Cannot initialize cluster

    sqoop-user | 3 years ago | Abraham Elmahrek
    orm.CompilationManager: Could not rename /tmp/sqoop-oracle/compile/95f371afda8b0247e432776caf5d5f4a/SQOOP_test.java to /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/etc/sqoop/conf.dist/./SQOOP_test.java java.io.FileNotFoundException: /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/etc/sqoop/conf.dist/./SQOOP_test.java (Permission denied)

    Root Cause Analysis

    1. orm.CompilationManager

      Could not rename /tmp/sqoop-oracle/compile/95f371afda8b0247e432776caf5d5f4a/SQOOP_test.java to /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/etc/sqoop/conf.dist/./SQOOP_test.java java.io.FileNotFoundException: /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/etc/sqoop/conf.dist/./SQOOP_test.java (Permission denied)

      at java.io.FileOutputStream.open()
    2. Java RT
      FileOutputStream.<init>
      1. java.io.FileOutputStream.open(Native Method)
      2. java.io.FileOutputStream.<init>(FileOutputStream.java:194)
      3. java.io.FileOutputStream.<init>(FileOutputStream.java:145)
      3 frames
    3. Commons IO
      FileUtils.moveFile
      1. org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:936)
      2. org.apache.commons.io.FileUtils.copyFile(FileUtils.java:888)
      3. org.apache.commons.io.FileUtils.copyFile(FileUtils.java:835)
      4. org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2385)
      4 frames
    4. org.apache.sqoop
      Sqoop.run
      1. org.apache.sqoop.orm.CompilationManager.compile(CompilationManager.java:229)
      2. org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:97)
      3. org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:396)
      4. org.apache.sqoop.tool.ImportTool.run(ImportTool.java:502)
      5. org.apache.sqoop.Sqoop.run(Sqoop.java:147)
      5 frames
    5. Hadoop
      ToolRunner.run
      1. org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      1 frame
    6. org.apache.sqoop
      Sqoop.main
      1. org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
      2. org.apache.sqoop.Sqoop.runTool(Sqoop.java:222)
      3. org.apache.sqoop.Sqoop.runTool(Sqoop.java:231)
      4. org.apache.sqoop.Sqoop.main(Sqoop.java:240)
      4 frames