RStudio to Hadoop Kerberos connection issues

rstudio

#1

We are trying to connect to Hadoop Kerberos server from RStudio for user with valid Kerberos AD ticket (TGT) or ticket cache and observed this error:

"ava.lang.NoClassDefFoundError: Could not initialize class 
org.apache.hadoop.security.UserGroupInformation"

Please suggest a resolution.

Error Message:

dbConnect(drv,"jdbc:hive2://xxxxx:xxxx/;AuthMech=1;KrbRealm=xxxx;KrbHostFQDNxxxxxx;KrbServiceName=hive;KrbAuthType=2;principal=hive/hxxxxx;ssl=true;sslTrustStore=hivetrust_gen_new.jks;trustStorePassword=xxxxxx;transportMode=http;httpPath=cliservice;")
Sep 14, 2018 4:18:55 PM org.apache.hive.jdbc.Utils parseURL
INFO: Supplied authorities:xxxxxx:xxxx
Sep 14, 2018 4:18:55 PM org.apache.hive.jdbc.Utils parseURL
INFO: Resolved authority: xxxxx:xxxxx
RJavaClassLoader: findResource('org/apache/http/client/version.properties')
RJavaClassLoader: found resource in jar:file:/D:/ExcessBal/R/Jars/httpclient-4.4.jar!/org/apache/http/client/version.properties using URL loader.
Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1],  : 
  java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.security.UserGroupInformation