Support Questions

Find answers, ask questions, and share your expertise

What / When flush out table metadata in catalog daemon?

avatar
Rising Star

Hello,

 

I have a question about metadata loaded in Impala catalog daemon.

 

If I understand correctly, catalog daemon read TABLE metadata from Hive metadata store and caches in memory.

My question is what trigger flushing out this cached TABLE metadata.

 

The reason I ask this question is that I noticed that TABLE metadata is flushed out from catalog daemon after some time. And, since TABLE metadata doesn't exist, catalog daemon tries to load metadata again from metastore.

 

Is there some kind of configuration I can set to control TABLE metadata lifecycle ( or memory )?

 

Thank you

Gatsby

 

1 ACCEPTED SOLUTION

avatar
Super Collaborator

Quoting my reply in this thread:

 

I don't know for sure, but I don't think metadata is flushed periodically. There also don't seem to be any configuration options of catalogd around metadata caching. Instead, the catalog should flush metadata when requested by "invalidate metadata" or by "refresh" or when a DDL statement makes changes to a table's metadata. Such changes should show up in the logfiles however.

View solution in original post

3 REPLIES 3

avatar
Super Collaborator

Quoting my reply in this thread:

 

I don't know for sure, but I don't think metadata is flushed periodically. There also don't seem to be any configuration options of catalogd around metadata caching. Instead, the catalog should flush metadata when requested by "invalidate metadata" or by "refresh" or when a DDL statement makes changes to a table's metadata. Such changes should show up in the logfiles however.

avatar
Rising Star

From log history, I found out someone keep running 'invalidate metadata' without table name. 😞

 

Thank you for your comment

Gatsby

avatar
Super Collaborator

Sure thing, I'm glad you found the culprit. 🙂