Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HUE Clear Cache, Perform Incremental Metadata Update, Invalidate all Metadata and rebuild index

avatar
Expert Contributor

Hi,

I'm trying to understand a little more about what these options do behind the scenes when pressed?  I found this post, but it never got any responses (http://community.cloudera.com/t5/Web-UI-Hue-Beeswax/What-is-under-the-hood-of-Hue-Impala-editor-Clea...)

Clear Cache
This is the one I am not too sure what happens

Perform Incremental metadata Update
I assume this issues a refresh command for all tables within the current database which is been viewed?  If no database is veiwed does it do it for everything?

Invalidate All metadata and rebuild index
Same as above, but rather than refresh it invalidates full metadata?  If no database is veiwed does it do it for everything?

1 ACCEPTED SOLUTION

avatar
Mentor
> Clear Cache
> This is the one I am not too sure what happens

It appears to clear the cached entries within Hue frontend, so the metadata for assist and views is loaded again from its source (Impala, etc.). I don't see it calling a refresh on the tables, but it is possible I missed some implicit action.

> Perform Incremental metadata Update
> I assume this issues a refresh command for all tables within the current database which is been viewed? If no database is veiwed does it do it for everything?

This will compare HMS listing against Impala's for the DB in context and run specific "INVALIDATE METADATA [[db][.table]];" for the missing ones in Impala.

Yes, if no DB is in the context, it will equate to running a global "INVALIDATE METADATA;"

> Invalidate All metadata and rebuild index

This runs a plain "INVALIDATE METADATA;"

View solution in original post

2 REPLIES 2

avatar
Mentor
> Clear Cache
> This is the one I am not too sure what happens

It appears to clear the cached entries within Hue frontend, so the metadata for assist and views is loaded again from its source (Impala, etc.). I don't see it calling a refresh on the tables, but it is possible I missed some implicit action.

> Perform Incremental metadata Update
> I assume this issues a refresh command for all tables within the current database which is been viewed? If no database is veiwed does it do it for everything?

This will compare HMS listing against Impala's for the DB in context and run specific "INVALIDATE METADATA [[db][.table]];" for the missing ones in Impala.

Yes, if no DB is in the context, it will equate to running a global "INVALIDATE METADATA;"

> Invalidate All metadata and rebuild index

This runs a plain "INVALIDATE METADATA;"

avatar
Explorer

Hi Harsha, 

 

Thanks for the explanation. In extension to the topic, I need small clarification - we recently implemented sentry on impala, based on below KB [1] article, we can't execute "Invalidate all metadata and rebuild index" and "Perform incremental metadata update" , since we don't have access to all the DB's, it's fair as well. Now my question is -

1. I am not able to see new DB in Hue impala, I can see the same from beeline or impala shell. How to fix or solve this ?

2. I can execute invalidate metadata on table from impala shell but I have 50+ DB's and 10's of tables in each db. Is there any option to run invalidate metadata ion DB level instead of individual table?

[1] https://my.cloudera.com/knowledge/INVALIDATE-METADATA--Sentry-Enabled--ERROR?

id=71141

 

Thanks

Krishna