To access databases, Go programmers call the standard library database/sql
, which relies on drivers to talk to database management systems. GoHive is such a driver that talks to Hive via HiveServer2, a Thrift server.
We found many open source Hive clients in Go. However we cannot find one completely compatible with the database/sql driver interface define in Go's standard library, so we developed our own solution and will continue to maintain and improve this project in the long run.
GoHive is go-gettable. Please run the following command to install it:
go get sqlflow.org/gohive
sqlflow.org/gohive
is a vanity import path of GoHive.
Your contribution to GoHive is very welcome! Please refer to this document on how to build and test GoHive in a Docker container.
GoHive comes with Apache License 2.0.
This implementation is strongly inspired by https://github.com/derekgr/hivething.