Search code examples
hivekerberosclouderamit-kerberoskrb5.ini

Windows MIT Kerberos, error 1765328190, krb5_cc_set_flags


I got error with MIT Kerberos, during testing ODBC connection to the HIVE

Credentils cache permissions incorrect (Kerberos error -1765328190)
krb5_cc_set_flags failed

How do you solve this issue?

I made these steps:

  • I reinstall kfw-4.1-amd64.msi, version 4.1 (64-bit, for windows)
  • I reinstall ClouderaHiveODBC64.msi, version 2.5.25.1020 (64-bit, for windows)
  • I opened ports 10000 for hive and 88 fork KDC server
  • I copy krb5.conf to directory c:\ProgramData\MIT\Kerberos5\krb5.ini
  • I setup system variables KRB5_CONFIG=c:\ProgramData\MIT\Kerberos5\krb5.ini and KRB5CCNAME=c:\test\krb5cache

Solution

  • I have the same issue, you have to use dynamic cache for Kerberos (path must be different for each user), not static. Use this setting for system variable KRB5CCNAME:

    KRB5CCNAME=%USERPROFILE%\krb5cache