-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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` | ||
|
@@ -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: | ||
|
||
|
@@ -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: | ||
|
||
|