gohive: program exception with EOF ?
package main
import (
"github.com/beltran/gohive"
"log"
)
func main() {
configuration := gohive.NewConnectConfiguration()
configuration.Service = "hive"
configuration.FetchSize = 1000
connection, errConn := gohive.Connect("10.21.89.89", 10000, "NOSASL", configuration)
if errConn != nil {
log.Fatal(errConn)
}
connection.Close()
}
My hive cluster did not enable kerberos authentication, I used this code to connect the hive cluster and port with 10000, it returns an exception with EOF, what’s wrong ?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (11 by maintainers)
Then you should be using
NONE
:connection, errConn := gohive.Connect("10.21.89.89", 10000, "NONE", configuration)
. You may get a different error now but hopefully it will be more clear