Support Questions

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

All hive tables location

avatar
Expert Contributor

Hello,

 

Is there a way get the hdfs locations of all tables in CDP 7.1.7 SP1?

 

I tried running a for loop against a list of tables on below command, however, it will take ages to get the list as I am looking forward to 66k+ tables.

 

hive -e “desc formatted <table>;” | grep Location

 

Thought of to get from HMS DB directly, however, I can only see DB location URI, but nothing specific to tables.

 

Kindly help as this is urgent.

 

Thanks

snm1523

1 ACCEPTED SOLUTION

avatar
Super Collaborator
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
2 REPLIES 2

avatar
Super Collaborator
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Expert Contributor

Thank you for the respone @ggangadharan