gohive Kerberos error: Bad SASL negotiation status: 4

The error occurs on connection to the HIVE from a Golang application using the gohive library.
SASL is Simple Authentication and Security Layer. SASL allows plug-in-based security. The application implements the SASL API and the application client can pass a SASL object to the application.