Re: Start HiveServer2 with Kerberos meet FATAL error

2016-10-18 Thread Loïc Chanel
Hi,

What is it you're executing when you get that error ?
It seems you're trying to log into HiveServer with unix username instead of
your Kerberos keytab.

Regards,


Loïc

Loïc CHANEL
System Big Data engineer
MS - WASABI - Worldline (Villeurbanne, France)

2016-10-18 4:40 GMT+02:00 Micro dong :

> I'm trying to configure HiveServer2(hive-1.2.1)  With Kerberos。Here is my
> Hive's configuration file。
>  **
> *hive.server2.authentication*
> *KERBEROS*
> *  *
> *  *
> *hive.server2.authentication.kerberos.principal*
> *hive2/_h...@hadoop.com *
> *  *
> *  *
> *hive.server2.authentication.kerberos.keytab*
> */home/work/software/hive/conf/hive.keytab*
> *  *
>
> the keytab file is in its location, its owner is work. But when I try to
> start the HiveServer2, I see this message on the log:
>
> *2016-10-18 10:20:24,867 FATAL [Thread-9]: thrift.ThriftCLIService
> (ThriftBinaryCLIService.java:run(101)) - Error starting HiveServer2: could
> not start ThriftBinaryCLIService*
> *javax.security.auth.login.LoginException: Kerberos principal should have
> 3 parts: work**  at *
> *org.apache.hive.service.auth.HiveAuthFactory.getAuthTransFactory(HiveAuthFactory.java:147)*
>
> *atorg.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:58)*
> *at java.lang.Thread.run(Thread.java:722)*
>
> Here *work* is my unix login name. Any help would be highly appreciated.
>
> --
> Best regards
>


Start HiveServer2 with Kerberos meet FATAL error

2016-10-17 Thread Micro dong
I'm trying to configure HiveServer2(hive-1.2.1)  With Kerberos。Here is my
Hive's configuration file。
 **
*hive.server2.authentication*
*KERBEROS*
*  *
*  *
*hive.server2.authentication.kerberos.principal*
*hive2/_h...@hadoop.com *
*  *
*  *
*hive.server2.authentication.kerberos.keytab*
*/home/work/software/hive/conf/hive.keytab*
*  *

the keytab file is in its location, its owner is work. But when I try to
start the HiveServer2, I see this message on the log:

*2016-10-18 10:20:24,867 FATAL [Thread-9]: thrift.ThriftCLIService
(ThriftBinaryCLIService.java:run(101)) - Error starting HiveServer2: could
not start ThriftBinaryCLIService*
*javax.security.auth.login.LoginException: Kerberos principal should have 3
parts: work**  at *
*org.apache.hive.service.auth.HiveAuthFactory.getAuthTransFactory(HiveAuthFactory.java:147)*
*atorg.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:58)*
*at java.lang.Thread.run(Thread.java:722)*

Here *work* is my unix login name. Any help would be highly appreciated.

-- 
Best regards