question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hive jdbc URL kerberos Authentication

See original GitHub issue

Is 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dharaniPVcommented, Aug 24, 2017

Hi @VenkataNU check this Link: http://disq.us/p/1j4o7rc and tell this issue to your admin who set the kerberos.

0reactions
VenkataNUcommented, Jul 13, 2017

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) "

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found