使用Rstudio窗口中的R rJDBC包连接到配置单元(启用kerberoes)

时间:2016-04-01 16:54:00

标签: r windows hive kerberos rjdbc

尝试使用R rjdbc连接Hive 2(启用kerberoes authenticat)时会出现以下问题。使用simba驱动程序连接到配置单元。

hiveConnection< - dbConnect(hiveJDBC," jdbc:hive2:// xxxx:10000 / default; AuthMech = 1; KrbRealm = xx.yy.com; KrbHostFQDN = dddd.yy.com; KrbServiceName = hive& #34)

.jcall中的错误(drv @ jdrv," Ljava / sql / Connection;"," connect",as.character(url)[1],:   java.sql.SQLException:[Simba] HiveJDBCDriver操作无效:无法获取主体名称进行身份验证;

1 个答案:

答案 0 :(得分:0)

  1. make sure kinit is issued and kerberoes ticket is generated using klist
  2. right Java version for the given R version (32/64 bit) available on the class-path
  3. right slf4j jars available based on your java version

All these steps should resolve the issue assuming your code does not have logic issues.