尝试使用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操作无效:无法获取主体名称进行身份验证;
答案 0 :(得分:0)
All these steps should resolve the issue assuming your code does not have logic issues.