hive jdbc URL kerberos Authentication
See original GitHub issueIs there any way to connect to hive DB (kerberosied) through JDBC URL. I tried below URL with some parameters, but it doesn’t work.
jdbc:hive2://hiveserve2_host:10000/default;principal=hive/hiveserve2_host@realm_name;saslQop=auth
Getting below error,
Unexpected driver error occurred while connecting to database
java.lang.RuntimeException: class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback not org.apache.hadoop.security.GroupMappingServiceProvider
java.lang.RuntimeException: class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback not org.apache.hadoop.security.GroupMappingServiceProvider
I have all the dependency jars (libraries) included. I have installed MIT Kerberos in Windows 7 machine and have a valid ticket.
OS : Windows 7 64 bit Dbeaver v3.7.7
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Setting Up a Hive Connection with Kerberos using Apache ...
Setting Up a Hive Connection with Kerberos using Apache JDBC Drivers (Windows) ... This procedure is for QuerySurge Agents deployed on Windows. The...
Read more >Solved: Connecting to Kerberos-enabled hive via JDBC direc...
I added the following based on the link provided and authenticate within the program and it works. org.apache.hadoop.conf.Configuration conf = new org.apache.
Read more >JDBC hive server 2 with kerberos, how is the principal ...
Configuring JDBC Clients for Kerberos Authentication with HiveServer2 JDBC-based clients must include principal= in the JDBC connection string.
Read more >Java Hive JDBC using Kerberos authentication example script
Java Hive JDBC using Kerberos authentication example script · $ kinit userid@REALM · Put your code in the directory like: /home/userid/myscripts · Use...
Read more >Connecting Hive/Impala with Kerberos Authentication on ... - IBM
Steps to create connection : 1) Generate an appropriate krb5.conf file; the documentation available at https://web.mit.edu/kerberos/krb5-1.12/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @VenkataNU check this Link: http://disq.us/p/1j4o7rc and tell this issue to your admin who set the kerberos.
I am also facing the same issue, could you please share the details if you found a way to solve this @dharaniPV - "java.lang.RuntimeException: java.lang.RuntimeException: class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback not org.apache.hadoop.security.GroupMappingServiceProvider at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2240) "