can you please change this line

<value>hive2/_h...@hadoop.com <h...@hadoop.com></value>*
with
<value>hive2/_h...@hadoop.com</value>*

How are you starting the service, What is the klist output?


On Mon, Oct 17, 2016 at 11:09 PM, Micro dong <microle.d...@gmail.com> wrote:

> 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/_h...@hadoop.com <h...@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
>

Reply via email to