Hive Metastore Client

Made with ❤️ by the Data Engineering team from QuintoAndar.

A client for connecting and running DDLs on Hive Metastore using Thrift protocol.

An example of how to use the library for running commands in hive metastore:

from hive_metastore_client.builders import DatabaseBuilder
from hive_metastore_client import HiveMetastoreClient

database = DatabaseBuilder(name='new_db').build()
with HiveMetastoreClient(HIVE_HOST, HIVE_PORT) as hive_metastore_client:
    hive_metastore_client.create_database(database)

To learn more use cases in practice, see Hive Metastore Client’s examples