IBM Support

Cannot load into a Hive table that is created in IBM InfoSphere BigInsights Big SQL when Oracle is used as the metastore

Troubleshooting


Problem

When Oracle is configured as the Hive metastore for IBM Big SQL, and you create a Hive table in Big SQL, the LOAD operation fails with an exception, 'Table not found'.

Symptom


Loading a table fails with the exception, "Table not found", as described in the following example:

LOAD HIVE DATA INPATH '/tmp/test.dat' OVERWRITE INTO TABLE test;
BIGSQL-GEN-0010 Found an internal error: 'Failed to execute query 'LOAD HIVE DATA INPATH '/tmp/test.dat' OVERWRITE INTO TABLE test' : java.lang.RuntimeException: load failed due to an error ocurring in hive: FAILED: Error in semantic analysis: Line 1:70 Table not found 'test'

[{"Product":{"code":"SSCRJT","label":"IBM Db2 Big SQL"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Big SQL","Platform":[{"code":"PF016","label":"Linux"}],"Version":"2.1.0;2.1.1;2.1.2","Edition":"Enterprise Edition","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
08 April 2021

UID

swg21667875