Skip to content

Commit

Permalink
fix readme mistakes (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
beltran authored Apr 26, 2020
1 parent 84b6f09 commit bcff3a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ data can be queried.
configuration := NewConnectConfiguration()
configuration.Service = "hive"
// Previously kinit should have done: kinit -kt ./secret.keytab hive/[email protected]
connection, errConn := Connect(ctx, "hs2.example.com", 10000, "KERBEROS", configuration)
connection, errConn := Connect("hs2.example.com", 10000, "KERBEROS", configuration)
```
This implies setting in hive-site.xml:
- `hive.server2.authentication = KERBEROS`
Expand All @@ -77,15 +77,15 @@ configuration := NewConnectConfiguration()
configuration.Username = "myUsername"
// This may not be necessary
configuration.Password = "myPassword"
connection, errConn := Connect(ctx, "hs2.example.com", 10000, "NONE", configuration)
connection, errConn := Connect("hs2.example.com", 10000, "NONE", configuration)
```
This implies setting in hive-site.xml:

- `hive.server2.authentication = NONE`

### Connnect using No Sasl:
``` go
connection, errConn := Connect(ctx, "hs2.example.com", 10000, "NOSASL", nil)
connection, errConn := Connect("hs2.example.com", 10000, "NOSASL", nil)
```
This implies setting in hive-site.xml:

Expand All @@ -99,7 +99,7 @@ configuration.HttpPath = "cliservice" // this is the default path in hive config
configuration.TransportMode = "http"
configuration.Service = "hive"

connection, errConn := Connect(ctx, "hs2.example.com", 10000, "KERBEROS", configuration)
connection, errConn := Connect("hs2.example.com", 10000, "KERBEROS", configuration)
```
This implies setting in hive-site.xml:

Expand Down

0 comments on commit bcff3a3

Please sign in to comment.