This topic includes instructions for using package managers to download and install Hive from the MEP repository.
mapr-client. Copy the following JAR file from a
resource manager node to the MapR client node:
/opt/mapr/hadoop/hadoop-<X.X.X>/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-<X.X.X>-mapr-<YYYY>.jar
Here:| X.X.X | Refers to the version (for example, hadoop-2.7.0) |
| YYYY | Refers to the release tag of ecosystem component (for example, 1602) |
See the Hive Release Notes for a list of fixes and new features.
Hive is distributed as the following packages:
| Package | Description |
|---|---|
mapr-hive
|
The core Hive package. |
mapr-hiveserver2
|
The Hive package that enables HiveServer2 to be managed by the warden,
allowing you to start and stop HiveServer2 using maprcli or the MapR Control
System. The mapr-hive package is a dependency and will be
installed if you install mapr-hiveserver2. At installation
time, Hiveserver2 is started automatically. |
mapr-hivemetastore
|
The Hive package that enables the Hive Metastore to be managed by the
warden, allowing you to start and stop Hive Metastore using maprcli or the
MapR Control System. The mapr-hive package is a dependency
and will be installed if you install mapr-hivemetastore. At
installation time, the Hive Metastore is started automatically. |
mapr-hivewebhcat |
The Hive package that enables WebHCat to be managed by the warden,
allowing you to start and stop WebHCat using maprcli or the MapR Control
System. The mapr-hive package is a dependency and will be
installed if you install mapr-hivewebhcat. At installation
time, the WebHCat is started automatically. |
Make sure the environment variable JAVA_HOME is set correctly.
For example:
# export JAVA_HOME=/usr/lib/jvm/java-7-sunYou
can set these system variables by using the shell command line or by updating files such
as /etc/profile or ~/.bash_profile. See the Linux
documentation for more details about setting system environment variables.
On Ubuntu, while configuring the new version of Hive, you could have an
issue caused by an incomplete removal of previously installed Hive packages. To avoid
this issue, use the purge command for complete removal of all
previously installed Hive packages.
root or using sudo./opt/mapr/hive/hive-<version>/bin/hive.
See Hive User Impersonation for the steps to configure user impersonation for Hive and the MapR cluster.
To configure Hive on Tez, see Configuring Hive and Tez.