Configure Hive Metastore Clients to use Kerberos
When the Hive Metastore is configured to use Kerberos authentication, you must also configure Hive Metastore Clients to use Kerberos when authenticating with Hive Metastore.
About this task
Procedure
-
Configure MAPR_HIVE_LOGIN _OPTS to
" -Dhadoop.login=hybrid"
in/opt/mapr/conf/env.sh
. -
Configure the following property in
hive-site.xml
:Property Value hive.metastore.kerberos.principal
The HiveMetastore principal. For example, mapr/<FQDN@REALM>. <property> <name>hive.metastore.kerberos.principal</name> <value>mapr/<FQDN@REALM></value> <description>The service principal for the metastore thrift server. The special string _HOST will be replaced automatically with the correct hostname.</description> </property>
What to do next
NOTE
The MAPR_HIVE_LOGIN_OPTS and MAPR_HIVE_SERVER_LOGIN_OPTS were added in 1504 release
of Hive 0.13 and Hive 1.0. If you have Hive 0.13 from a prior release, you do not need to
configure these properties. Instead, set MAPR_ECOSYSTEM_LOGIN_OPTS and
MAPR_ECOSYSTEM_SERVER_LOGIN_OPTS to "-Dhadoop.login=hybrid"
in
/opt/mapr/conf/env.sh
.