Open darshanpandya-kogentix opened 6 years ago
I know this is a bit of an old issue, but I recently had to set up a connection using Kerberos. To get it to work before creating the driver, I had to create a UserGroupInformation class and use the loginUserFromKeytab method. Something along the lines of:
conf <- rJava::.jnew("org.apache.hadoop.conf.Configuration")
conf$set("hadoop.security.authentication", "kerberos")
ugi <- rJava::J("org.apache.hadoop.security.UserGroupInformation")
ugi$setConfiguration(conf)
ugi$loginUserFromKeytab("<PRINCIPAL>", "<PATH_TO_KEYTAB>")
Then set up the Hive driver and connect.
Hello ,
I am trying to connect R to Hive (kerberos enabled) .. Please let me know if the following is the right approach. If yes, I am running into an issue which is not giving enough information to debug.
Thank you for your help in advance.