oozie java action, failed using keytab to connect to kerberized hive server 2

2015-08-27 Thread Jary Du
I am having a oozie java action and it tries to connect to kerberized Hive Server 2 with the keytab. Using keytab to login into kerberos was successful by doing “UserGroupInformation.loginUserFromKeytab(principalName, KEYTAB);” But accessing hive server2 stills complains failed to find any kerber

Re: HiveServer2 & Kerberos

2015-08-20 Thread Jary Du
> authentication, that's actually why I was asking what is Hive asking for, > because in my case, it seems that I shouldn't be asked for a password when > connecting. > > Loïc CHANEL > Engineering student at TELECOM Nancy > Trainee at Worldline - Villeurbanne > &g

Re: HiveServer2 & Kerberos

2015-08-20 Thread Jary Du
Loïc > > Loïc CHANEL > Engineering student at TELECOM Nancy > Trainee at Worldline - Villeurbanne > > 2015-08-19 18:22 GMT+02:00 Jary Du <mailto:jary...@gmail.com>>: > Correct me if I am wrong, my understanding is that after using kerberos > authentication, you prob

Re: HiveServer2 & Kerberos

2015-08-19 Thread Jary Du
ha...@telecomnancy.net>>: > All right, but then, what is the password hive asks for ? Hive's one ? How do > I know its value ? > > Loïc CHANEL > Engineering student at TELECOM Nancy > Trainee at Worldline - Villeurbanne > > 2015-08-19 17:51 GMT+02:00 Jary

Re: HiveServer2 & Kerberos

2015-08-19 Thread Jary Du
m this. Thanks a lot for your response though. > Do you have another idea ? > > Loïc CHANEL > Engineering student at TELECOM Nancy > Trainee at Worldline - Villeurbanne > > 2015-08-19 17:42 GMT+02:00 Jary Du <mailto:jary...@gmail.com>>: > "The Beeline cli

Re: HiveServer2 & Kerberos

2015-08-19 Thread Jary Du
"The Beeline client must have a valid Kerberos ticket in the ticket cache before attempting to connect." (http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.1.3/bk_dataintegration/content/ch_using-hive-clients-examples.html) So you need kinit first to have the valid Kerberos ticket int the tick

Use delegation token(from oozie in a java action) through hive JDBC to talk to hive server 2

2015-08-13 Thread Jary Du
Hi, Currently I am having an issue really need some help from hive community. We are trying kerberize our hadoop cluster including hive server2 and oozie. My oozie job spins off a java action in data node which tries to connect to kerberized hive server 2. There is no user’s kerberos keytab fo