How to access Metastore from beeline?

前端 未结 1 1965
自闭症患者
自闭症患者 2021-01-22 13:18

I need to do some SQL queries (as here) directly from Metasore.
PS: the commands SHOW/DESCRIBE are not enough.

How to enable access from it as database, o

1条回答
  •  终归单人心
    2021-01-22 13:54

    Spark-shell solution

    Spark access Metastore under the hood, it have a first class metadata method, that returns a dataframe, the schema property, that expose names, types, etc. and offers getComment method.

    See https://stackoverflow.com/a/57857021/287948

    0 讨论(0)
提交回复
热议问题