This section describes changes made in Hive default configuration. It shows how to configure Hive after manual installation.
Unlike the previous releases, starting in MEP
4.0, Hive should be configured by running the
$MAPR_HOME/server/configure.sh script with the -R
option after installing Hive. Hive demons will not start automatically if Hive is not
configured correctly. The security configuration are described in the following
sections:
$HIVE_HOME/bin/configure.sh script for Hive
configuration. Every configuration of Hive should be done via the
$MAPR_HOME/server/configure.sh utility by running it with the
-R option. The core $MAPR_HOME/server/configure.sh
utility invokes the ecosystem configure.sh script automatically with
appropriate security option.If you installed Hive using the MapR Installer, the MapR Installer configures Hive daemons during installation. Additional configuration is not required.
After a new manual installation, to generate a valid default ecosystem configuration, run:
$MAPR_HOME/server/configure.sh -R
| Node, Package | Hive | HiveServer2 | Hive Metastore | WebHCat |
|---|---|---|---|---|
| Node 1 | X | X | ||
| Node 2 | X | X | ||
| Node 3 | X | X |
$MAPR_HOME/server/configure.sh -RAs a result:
hive.metastore.sasl.enabled property is enabled in the
hive-site.xml file, its value is set to true. If
the property is not present, it is added in the configuration
section as follows:
<property>
<name>hive.metastore.sasl.enabled</name>
<value>true</value>
</property>hive.server2.thrift.sasl.qop property is available
in the hive-site.xml file, its value is set to
auth-conf. If the property is not present, it is added in the
configuration section as follows:
<property>
<name>hive.server2.thrift.sasl.qop</name>
<value>auth-conf</value>
</property>configure.sh script creates a backup folder for the current
Hive configuration before it changes the configuration. All configuration properties
including *.conf, *.properties, and
*.xml are saved in the backup folder.
$HIVE_HOME/conf.YYYYMMDD_HHMMSconfigure.sh with the -R option overwrites permissions of the configuration files to 644.configure.sh script
generates an error message during configuration.Hive default ports are as follows:
| Role | Default Port |
|---|---|
| Hive Metastore | 9083 |
| HiveServer2 | 10000 |
| HiveWebHCat | 50111 |
For PAM, LDAP, and Kerberos custom configurations, run configure.sh
with the -R option:
$MAPR_HOME/server/configure.sh -R
The hive-site.xml file is not changed. However, Warden files are copied
and a HIVE_HOME/conf backup folder is created.