Query Hive Meta Store

后端 未结 2 1899
日久生厌
日久生厌 2021-01-24 22:56

I want to know how to query the hive metastore database and grab a few key properties including:

  • create date
  • last update date
  • last access date
相关标签:
2条回答
  • 2021-01-24 23:44

    From Java code you can query the Hive Metastore directly - cf. JavaDoc

    Or, if you like quick-and-dirty tricks, you can connect to the Metastore database (typically a MySQL instance) and run some SQL queries directly against it. Not much public documentation about the data model, unfortunately.

    0 讨论(0)
  • 2021-01-24 23:56
    select TBL_NAME, OWNER, CREATE_TIME, LAST_ACCESS_TIM
    from TBLS
    limit 11; 
    
    0 讨论(0)
提交回复
热议问题