Skip to content

Commit

Permalink
add zookeeper docs (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
beltran authored Apr 26, 2020
1 parent bcff3a3 commit 54a8df6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
```
Expand Down

0 comments on commit 54a8df6

Please sign in to comment.