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

schematool --createCatalog option fails when using Oracle as the RDBMS

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1
    • Component/s: Metastore
    • Labels:
      None

      Description

      Attempts to use the schematool --createCatalog option when the metastore is using Oracle result in

      SQL Error code: 1786
      org.apache.hadoop.hive.metastore.HiveMetaException: Failed to add catalog
      at org.apache.hive.beeline.HiveSchemaTool.createCatalog(HiveSchemaTool.java:941)
      at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:1459)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.hadoop.util.RunJar.run(RunJar.java:308)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:222)
      Caused by: java.sql.SQLSyntaxErrorException: ORA-01786: FOR UPDATE of this query expression is not allowed
      
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1059)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:587)
      at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210)
      at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:30)
      at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:762)
      at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:925)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1111)
      at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1309)
      at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:422)
      at org.apache.hive.beeline.HiveSchemaTool.createCatalog(HiveSchemaTool.java:926)
      ... 7 more
      *** schemaTool failed ***

        Attachments

        1. HIVE-19686.patch
          3 kB
          Alan Gates

          Issue Links

            Activity

              People

              • Assignee:
                gates Alan Gates
                Reporter:
                gates Alan Gates
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: