Connect to kerberised hive using jdbc from remote windows system

前端 未结 3 1044
时光取名叫无心
时光取名叫无心 2020-12-21 13:39

I have setup a hive environment with Kerberos security enabled on a Linux server (Red Hat). And I need to connect from a remote windows machine to hive using JDBC.

S

3条回答
  •  盖世英雄少女心
    2020-12-21 13:59

    The key for us when we ran into the problem, was as follows:

    On your server there are certain kerberos principals listed that are allowed to operate on the data.

    When we tried to run a query via JDBC, we didn't do the proper kinit on the client side.

    In this case the solution is obvious:

    On the windows client: do a kinit with the proper account before connecting

提交回复
热议问题