/hmsv2api

HMS API v2

Primary LanguageThriftApache License 2.0Apache-2.0

Hive Metastore API v2

Introduction

This is work in progress for Hive Metastore API version 2. It has the following components:

All Java work required to use the new API is elsewhere.

Documentation

Installation

go get github.com/akolb1/hmsv2api/gometastore/...

Prerequisites

This project uses gRPC version 3 and needs Version 3 protoc compiler in your path.

Running server and proxy

$ hmsv2server -h
Usage of ./gometastore/hmsv2server/hmsv2server:
  -dbname string
        db name (default "hms2.db")
  -port int
        The server port (default 10010)
        
$ hmsproxy -h
Usage of ./gometastore/hmsproxy/hmsproxy:
  -hms string
        HMS endpoint (default "localhost:10010")
  -proxy string
        Proxy endpoint (default "localhost:8080")

Updating protobuf definition

The definition is in protobuf/metastore.proto. After any changes, please run

make deps # Only need to run this once
make proto
make

to regenerate all auto-generated files. To regenerate documentation use

make doc