Step 3: Install MapR Service Packages
The installation process will vary based on the location of your packages and the configuration of your cluster.
Install services based on your cluster plan and service layout.
List of Packages by Mode
The following table lists the MapR core packages to install on cluster nodes:
Installation |
YARN |
Packages to install on all [compute] cluster nodes |
|
Packages to install on designated cluster nodes |
|
Package to install on client machines that run hadoop commands that are not already part of the cluster |
mapr-client
|
Install the packages based on a thorough plan. For example cluster designs, see Example Cluster Designs.
To install MapR, select one of the installation methods in the subsequent topics, depending on your operating system.
Installing from a Repository
Before installing from the repository, change to the root
user or use
sudo
.
- On RedHat, CentOS, or Oracle Linux, use the
yum
command to install the services that you want to run on the node.Syntax and Example
yum install <package_name> <package_name> <package_name>
yum install mapr-fileserver mapr-nodemanager
- On SUSE, use the
zypper
command to install the services that you want to run on the node.Syntax and Example
zypper install <package_name> <package_name> <package_name>
zypper install mapr-fileserver mapr-nodemanager
- On Ubuntu, use the
apt-get
commands to update the Ubuntu package cache and install the services that you want to run on the node.- Update the Ubuntu package cache:
apt-get update
- Install the services:
Syntax and Example
apt-get install <package_name> <package_name> <package_name>
apt-get install mapr-fileserver mapr-nodemanager
- Update the Ubuntu package cache:
Installing from a Local Repository
Before installing from the repository, change to the root
user or use
sudo
.
- On RedHat, CentOS, Oracle Linux, or SUSE, use
rpm
command to install the appropriate packages for the node:- Change the working directory to the location where the
rpm
package files are located. - Install the services:
Syntax and Example
yum install <package_file> <package_file> <package_file>
yum install /path/to/mapr-core-<version>.x86_64.rpm mapr-cldb-<version>.x86_64.rpm \ mapr-resourcemanager-<version>.x86_64.rpm mapr-webserver-<version>.x86_64.rpm \
NOTE: Replace<version>
with the exact version string found in the package filename.
- Change the working directory to the location where the
- On Ubuntu, use the
dpkg
command to install the appropriate packages for the node.- Change the working directory to the location where the
deb
package files are located. - Install the services:
Syntax and Example
dpkg -i <package_file> <package_file> <package_file>
dpkg -i mapr-core-<version>.x86_64.rpm mapr-cldb-<version>.x86_64.rpm \ mapr-resourcemanager-<version>.x86_64.rpm mapr-webserver-<version>.x86_64.rpm \
NOTE: Replace<version>
with the exact version string found in the package filename.
- Change the working directory to the location where the
Installing from Package Files
When you install from package files, you must manually pre-install any dependency packages
in order for the installation to succeed. Most MapR packages depend on the package
mapr-core
. Similarly, many Hadoop ecosystem components have internal
dependencies. See Packages and Dependencies for MapR Software
for details.