Skip to main content
kkanchu
Silver ⭐️⭐️⭐️
Silver ⭐️⭐️⭐️
Jan 12, 2019 8:40 AM UTC

Count total number of hive tables across all databases

  • Oct 5, 2026 9:02 AM UTC
  • 2 replies
  • 3868 views
  • Translate All

The number can be found in the database which is used to store hive meta data.

If MySql is the backend db,

select count(*) from TBLS;

2 replies

kalo2013
Silver ⭐️
Jan 15, 2019 4:40 PM UTC

What is the meaning of writing this?

Translate
kkanchu
Silver ⭐️⭐️⭐️
kkanchuAuthor
Silver ⭐️⭐️⭐️
Jan 16, 2019 4:20 AM UTC

Do you mean what is the use/need ? If so, for anyone who is a platform admin, if they would like to know how many hive tables are there in all the hive DBs put together, this query can help them answer. This was asked by a customer in one of the calls we had and thought it would help others with similar request. There is also a similar thread as this, feel free to refer this.

Translate