AnsweredAssumed Answered

Failed with exception Cannot rename across volumes

Question asked by anil_maheshwari on Sep 5, 2012
Latest reply on May 3, 2013 by nabeel
I get this error when importing data directly from Oracle to Hive using Sqoop.

2012-09-05 14:58:58,592 ERROR exec.Task (SessionState.java:printError(400)) - Failed with exception Cannot rename across volumes
org.apache.hadoop.hive.ql.metadata.HiveException: Cannot rename across volumes
             at org.apache.hadoop.hive.ql.metadata.Hive.replaceFiles(Hive.java:2055)
             at org.apache.hadoop.hive.ql.metadata.Table.replaceFiles(Table.java:532)
             at org.apache.hadoop.hive.ql.metadata.Hive.loadTable(Hive.java:1259)
             at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:234)
             at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:134)
             at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
             at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1326)
             at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1118)
             at org.apache.hadoop.hive.ql.Driver.run(Driver.java:951)
             at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:258)
             at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:215)
             at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:406)
             at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:689)
             at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:557)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
             at java.lang.reflect.Method.invoke(Method.java:601)
             at org.apache.hadoop.util.RunJar.main(RunJar.java:197)
Caused by: java.io.IOException: Cannot rename across volumes
             at com.mapr.fs.MapRFileSystem.rename(MapRFileSystem.java:462)
             at org.apache.hadoop.hive.ql.metadata.Hive.replaceFiles(Hive.java:2048)

Outcomes