Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alindeman/hive-msgpack

Runs a Hive query, returning results as msgpack
https://github.com/alindeman/hive-msgpack

Last synced: about 1 month ago
JSON representation

Runs a Hive query, returning results as msgpack

Awesome Lists containing this project

README

        

# hive-msgpack

A small clojure application that runs a [Hive](http://hive.apache.org/) query
and spits out the results as a msgpack stream. Uses the Hive JDBC adapter.

## Usage

Download [a release](https://github.com/alindeman/hive-msgpack/releases) or
compile it yourself with `lein uberjar`.

Then fire away:

```bash
$ java -jar hive-msgpack.jar -o /tmp/output.msgpack 'select * from foo'
```

By default, hive-msgpack assumes you are running `hive --service hiveserver`
on `localhost:10000` (the defaults). A different host or port can be
specified with the `--host` and `--port` switches.

Run `java -jar hive-msgpack.jar --help` for examples and defaults.