+
Skip to content

akolb1/metastore-python

Repository files navigation

Simple CLI client for HMS Metastore.

Kerberos support

None of these tools work in kerberos-enabled cluster.

You should consider using Java-based toolkit if you need support for Kerberos.

Usage

usage: hclient [-h] [-H HOST] [-d DB] [-t TABLE] [-C COLUMN] [-P PARTITION]
               [-u USER] [-c COMMENT] [-L {info,debug,warning,error}]
               [--force] [-v]
               {add,listdb,list,create,drop,rm}

Hive Metastore client

positional arguments:
  {add,listdb,list,create,drop,rm}
                        HMS action

optional arguments:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  HMS server address
  -d DB, --db DB        database name
  -t TABLE, --table TABLE
                        table name
  -C COLUMN, --column COLUMN
                        column name:type
  -P PARTITION, --partition PARTITION
                        partition name:type
  -u USER, --user USER  user name
  -c COMMENT, --comment COMMENT
                        comment
  -L {info,debug,warning,error}, --loglevel {info,debug,warning,error}
                        Log level
  --force               force destructive operation
  -v, --verbose         show more information

Examples

List databases

List all databases

 hclient -H host listdb

List databases containing 'foo' in the name

 hclient -H host -d foo listdb

List tables

List all tables

hclient -H host list

List tables containing 'foo' in the name

hclient -H host -t foo list

About

Stand-alone Hive metastore tools for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载