Getting Started

Hive Metastore Client depends on Python 3.7+.

Python Package Index hosts reference to a pip-installable module of this library, using it is as straightforward as including it on your project’s requirements.

pip install hive-metastore-client

Or after listing hive-metastore-client in your requirements.txt file:

pip install -r requirements.txt

Discovering Hive Metastore Client

Click on the following links to open the examples:

#1 Create a database

#2 Create a table

#3 Create an external table

#4 Add columns to a table

#5 Add partitions to a table if not exists

#6 Add partitions to a table

#7 Get partition keys objects from a table

#8 Get partition keys (names & types) from a table

#9 Get partition keys (names only) from a table

#10 Bulk drop partitions values from a table

#11 Get partition values from a table

Available methods

You can see all the Hive Metastore server available methods by looking at the interface: thrift_files.libraries.thrift_hive_metastore_client.ThriftHiveMetastore.Iface.

Beyond the default methods, this library also implements the methods below in the HiveMetastoreClient class: