From 54a8df6a50f79201fa97a41568f78871f44fc6b9 Mon Sep 17 00:00:00 2001 From: Jaume Marhuenda Date: Sun, 26 Apr 2020 11:03:23 -0700 Subject: [PATCH] add zookeeper docs (#91) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7079176..0bf2534 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,14 @@ This implies setting in hive-site.xml: - `hive.server2.transport.mode = http` - `hive.server2.thrift.http.port = 10001` +## Zookeeper +A connection can be made using zookeeper: + +```go +connection, errConn := ConnectZookeeper("zk1.example.com:2181,zk2.example.com:2181", "NONE", configuration) +``` +The last two parameters determine how the connection to hive will be made once the hive hosts are retrieved from zookeeper. + ## NULL values For example if a `NULL` value is in a row, the following operations would put `0` into `i`: ```