You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Micro dong <mi...@gmail.com> on 2016/10/18 02:40:47 UTC
Start HiveServer2 with Kerberos meet FATAL error
I'm trying to configure HiveServer2(hive-1.2.1) With Kerberos。Here is my
Hive's configuration file。
*<property>*
* <name>hive.server2.authentication</name>*
* <value>KERBEROS</value>*
* </property>*
* <property>*
* <name>hive.server2.authentication.kerberos.principal</name>*
* <value>hive2/_HOST@HADOOP.COM <HO...@HADOOP.COM></value>*
* </property>*
* <property>*
* <name>hive.server2.authentication.kerberos.keytab</name>*
* <value>/home/work/software/hive/conf/hive.keytab</value>*
* </property>*
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
Re: Start HiveServer2 with Kerberos meet FATAL error
Posted by Loïc Chanel <lo...@telecomnancy.net>.
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&T - WASABI - Worldline (Villeurbanne, France)
2016-10-18 4:40 GMT+02:00 Micro dong <mi...@gmail.com>:
> I'm trying to configure HiveServer2(hive-1.2.1) With Kerberos。Here is my
> Hive's configuration file。
> *<property>*
> * <name>hive.server2.authentication</name>*
> * <value>KERBEROS</value>*
> * </property>*
> * <property>*
> * <name>hive.server2.authentication.kerberos.principal</name>*
> * <value>hive2/_HOST@HADOOP.COM <HO...@HADOOP.COM></value>*
> * </property>*
> * <property>*
> * <name>hive.server2.authentication.kerberos.keytab</name>*
> * <value>/home/work/software/hive/conf/hive.keytab</value>*
> * </property>*
>
> 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
>