Using Hive 2.3.7 on AWS EMR (5.33.1) I have created a database which shows correctly when calling show databases;
. I then create a table which seems to work correctly (no exceptions). When I call describe <table>;
It correctly returns the name and schema of the table. However when I run show tables;
the following error is returned:
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.MetaException(message:Got exception: org.apache.hadoop.hive.metastore.api.MetaException
Exception thrown when executing query :
SELECT A0.TBL_NAME,A0.TBL_NAME AS NUCORDER0 FROM TBLS A0 LEFT OUTER JOIN DBS B0 ON
A0.DB_ID = B0.DB_ID WHERE B0.`NAME` = ? AND LOWER(A0.TBL_NAME) LIKE '_%' ESCAPE '\' ORDER BY NUCORDER0)
If anyone can shed any light on this issue it would be really appreciated.
I have googled around and found nothing of any use.
EDIT: show tables in <schema>;
returned the same result
EDIT 2: This issue was solved by updating the EMR to emr-6.4.0
. I have no great insight into the issue beyond what is mentioned here.