您可以通过两种方法进行检查:
1.)如@dimamah所建议,只需在此处添加一点,对于这种方法,您需要
1.1) start the **hiveserver** before running the query 1.2) you have to run two queries 1.2.1) USE <database_name> 1.2.2) SHOW TABLES LIKE 'table_name' 1.2.3) Then you check your result using Result set.
2.)第二种方法是使用HivemetastoreClient API,您可以在其中直接使用API检查 table_name 在特定
数据库中 是否存在。
如需进一步的帮助,请阅读此Hive
11



