
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
This project aims to be an up to date Python client to interact with the Hive metastore using the Thrift protocol.
Install it with pip install hmsclient
or directly from source
.. code-block:: python
python setup.py install
Using it from Python is simple:
.. code-block:: python
from hmsclient import hmsclient
client = hmsclient.HMSClient(host='localhost', port=9083)
with client as c:
c.check_for_named_partition('db', 'table', 'date=20180101')
The hmsclient.py
is just a thin wrapper around the generated Python code to
interact with the metastore through the Thrift protocol.
To regenerate the code using a newer version of the .thrift
files, you can
use generate.py
(note: you need to have thrift
installed, see here_)
.. code-block:: sh
python generate.py --help
Usage: generate.py [OPTIONS]
Options:
--fb303_url TEXT The URL where the fb303.thrift file can be downloaded
--metastore_url TEXT The URL where the hive_metastore.thrift file can be
downloaded
--package TEXT The package where the client should be placed
--subpackage TEXT The subpackage where the client should be placed
--help Show this message and exit.
Otherwise the defaults will be used.
.. _here: https://thrift-tutorial.readthedocs.io/en/latest/installation.html
FAQs
A package interact with the Hive metastore via the Thrift protocol
We found that hmsclient demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.