Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alindeman/hive-client
Barebones client for making Hive queries from Ruby
https://github.com/alindeman/hive-client
Last synced: about 1 month ago
JSON representation
Barebones client for making Hive queries from Ruby
- Host: GitHub
- URL: https://github.com/alindeman/hive-client
- Owner: alindeman
- License: mit
- Created: 2013-11-09T18:42:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-11T00:08:01.000Z (about 11 years ago)
- Last Synced: 2024-10-20T07:43:14.707Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 29.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# hive-client
Barebones client for making Hive queries from Ruby.
Requires `java` in `$PATH` and `hive --service hiveserver` running somewhere.
## Usage
```ruby
# By default, `hive --service hiveserver` runs on localhost:10000
client = Hive::Client.new(host: "localhost", port: 10000)
client.query("select id, str from foo") do |row|
puts "#{row["id"]}: #{row["str"]}"
end
```... that's all, folks.