Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-212

Queries for local/cluster storage tables are errorring out

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • examples
    • None

    Description

      On executing the following query using len-cli (running lens using docker):
      query execute select * from local_fact1

      I am getting the following exception:
      Query failed with errorCode:1 with errorMessage: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask cause:Stage-0(MOVE):Stage-0: has failed! Stage-0(MOVE):Stage-0: has failed! Stage-0(MOVE):Stage-0: has failed! Stage-0(MOVE):Stage-0: has failed!

      Corresponding error logs from hive.log :
      Failed with exception Unable to rename: hdfs://a1cf79816353:9000/tmp/hive-root/hive_2015-01-20_10-35-
      19_557_1696101339865196124-1/-ext-10000 to: /tmp/lensreports/hdfsout/d9ee6634-ca74-4344-87d4-47e1111ddf59
      org.apache.hadoop.hive.ql.metadata.HiveException: Unable to rename: hdfs://a1cf79816353:9000/tmp/hive-root/hive_2015-01-20_10-35-19_557_1696101339865196124-1/-ext-10000 to: /tmp/l
      ensreports/hdfsout/d9ee6634-ca74-4344-87d4-47e1111ddf59
      at org.apache.hadoop.hive.ql.exec.MoveTask.moveFile(MoveTask.java:99)
      at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:198)
      at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:173)
      at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85)
      at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1491)
      at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1250)
      at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1062)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:885)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:880)
      at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:158)
      at org.apache.hive.service.cli.operation.SQLOperation.access$000(SQLOperation.java:76)
      at org.apache.hive.service.cli.operation.SQLOperation$1$1.run(SQLOperation.java:215)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:415)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
      at org.apache.hadoop.hive.shims.HadoopShimsSecure.doAs(HadoopShimsSecure.java:500)
      at org.apache.hive.service.cli.operation.SQLOperation$1.run(SQLOperation.java:224)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

      This issue is with the HDFSStorage only, tables created with DBStorage are working fine.

      Attachments

        1. Lens-212.patch
          0.6 kB
          Sharad Agarwal

        Activity

          People

            sharadag Sharad Agarwal
            aniruddha.g Aniruddha Gangopadhyay
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: