Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19341

qtest shows cannot overwrite read-only table exception in the clean up scripts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      In the end of the result output file, the following exception log appended. This text will not cause the q test to fail if it was correct.

      FAILED: Hive Internal Error: org.apache.hadoop.hive.ql.metadata.HiveException(Error while invoking PreHook. hooks: java.lang.RuntimeException: Cannot overwrite read-only table: src_thrift
      at org.apache.hadoop.hive.ql.hooks.EnforceReadOnlyTables.run(EnforceReadOnlyTables.java:63)
      at org.apache.hadoop.hive.ql.hooks.EnforceReadOnlyTables.run(EnforceReadOnlyTables.java:43)
      at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296)
      at org.apache.hadoop.hive.ql.HookRunner.runPreHooks(HookRunner.java:273)
      at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2086)
      at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1825)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1568)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1562)
      at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157)
      at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:218)
      at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:239)
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:188)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:402)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:335)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanupFromFile(QTestUtil.java:1131)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanUp(QTestUtil.java:1104)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanUp(QTestUtil.java:1088)
      at org.apache.hadoop.hive.ql.QTestUtil.shutdown(QTestUtil.java:736)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver$6.invokeInternal(CoreCliDriver.java:141)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver$6.invokeInternal(CoreCliDriver.java:138)
      at org.apache.hadoop.hive.util.ElapsedTimeLoggingWrapper.invoke(ElapsedTimeLoggingWrapper.java:33)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver.shutdown(CoreCliDriver.java:144)
      at org.apache.hadoop.hive.cli.control.CliAdapter$1$1.evaluate(CliAdapter.java:75)
      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
      at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
      )
      org.apache.hadoop.hive.ql.metadata.HiveException: Error while invoking PreHook. hooks: java.lang.RuntimeException: Cannot overwrite read-only table: src_thrift
      at org.apache.hadoop.hive.ql.hooks.EnforceReadOnlyTables.run(EnforceReadOnlyTables.java:63)
      at org.apache.hadoop.hive.ql.hooks.EnforceReadOnlyTables.run(EnforceReadOnlyTables.java:43)
      at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296)
      at org.apache.hadoop.hive.ql.HookRunner.runPreHooks(HookRunner.java:273)
      at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2086)
      at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1825)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1568)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1562)
      at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157)
      at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:218)
      at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:239)
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:188)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:402)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:335)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanupFromFile(QTestUtil.java:1131)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanUp(QTestUtil.java:1104)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanUp(QTestUtil.java:1088)
      at org.apache.hadoop.hive.ql.QTestUtil.shutdown(QTestUtil.java:736)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver$6.invokeInternal(CoreCliDriver.java:141)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver$6.invokeInternal(CoreCliDriver.java:138)
      at org.apache.hadoop.hive.util.ElapsedTimeLoggingWrapper.invoke(ElapsedTimeLoggingWrapper.java:33)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver.shutdown(CoreCliDriver.java:144)
      at org.apache.hadoop.hive.cli.control.CliAdapter$1$1.evaluate(CliAdapter.java:75)
      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
      at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)

      at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:302)
      at org.apache.hadoop.hive.ql.HookRunner.runPreHooks(HookRunner.java:273)
      at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2086)
      at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1825)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1568)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1562)
      at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157)
      at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:218)
      at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:239)
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:188)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:402)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:335)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanupFromFile(QTestUtil.java:1131)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanUp(QTestUtil.java:1104)
      at org.apache.hadoop.hive.ql.QTestUtil.cleanUp(QTestUtil.java:1088)
      at org.apache.hadoop.hive.ql.QTestUtil.shutdown(QTestUtil.java:736)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver$6.invokeInternal(CoreCliDriver.java:141)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver$6.invokeInternal(CoreCliDriver.java:138)
      at org.apache.hadoop.hive.util.ElapsedTimeLoggingWrapper.invoke(ElapsedTimeLoggingWrapper.java:33)
      at org.apache.hadoop.hive.cli.control.CoreCliDriver.shutdown(CoreCliDriver.java:144)
      at org.apache.hadoop.hive.cli.control.CliAdapter$1$1.evaluate(CliAdapter.java:75)
      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
      at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
      Caused by: java.lang.RuntimeException: Cannot overwrite read-only table: src_thrift
      at org.apache.hadoop.hive.ql.hooks.EnforceReadOnlyTables.run(EnforceReadOnlyTables.java:63)
      at org.apache.hadoop.hive.ql.hooks.EnforceReadOnlyTables.run(EnforceReadOnlyTables.java:43)
      at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296)
      ... 30 more

        Attachments

        1. HIVE-19341.01.patch
          2 kB
          Haifeng Chen

          Activity

            People

            • Assignee:
              jerrychenhf Haifeng Chen
              Reporter:
              jerrychenhf Haifeng Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: