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. Depending on your plan, you may have decided to run your cluster in one of the following modes:

  • MapReduce Classic (MapReduce1)
  • YARN (MapReduce2)
  • Mixed-Mode (MapReduce1 and MapReduce2)

List of Packages by Mode

The following table lists the MapR packages to install on cluster nodes based on the MapReduce mode that you plan to run:

Installation

MapReduce Classic

YARN

Mixed-Mode

Packages to install on all cluster nodes

mapr-fileserver

mapr-fileserver

mapr-fileserver

Packages to install on designated cluster nodes

mapr-cldb

mapr-zookeeper

mapr-nfs

mapr-webserver

mapr-metrics

mapr-gateway

mapr-jobtracker

mapr-tasktracker

mapr-cldb

mapr-zookeeper

mapr-nfs

mapr-webserver

mapr-gateway

mapr-resourcemanager

mapr-nodemanager

mapr-historyserver

mapr-cldb

mapr-zookeeper

mapr-nfs

mapr-webserver

mapr-metrics

mapr-gateway

mapr-jobtracker

mapr-tasktracker

mapr-resourcemanager

mapr-nodemanager

mapr-historyserver

Package to install on client machines that run hadoop commands

mapr-client mapr-client mapr-client
Warning: This table is a rough guide and does not include the additional packages required for internal dependencies or Hadoop ecosystem components.

Install the packages based on a thorough plan. As a best practice, do not install mapr-tasktracker or mapr-nodemanager on nodes with CLDB and/or ZooKeeper installed.

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-tasktracker
  • 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-tasktracker
  • 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.
    1. Update the Ubuntu package cache:
      apt-get update 
    2. Install the services:

      Syntax and Example

      apt-get install <package_name> <package_name> <package_name> 
      apt-get install mapr-fileserver mapr-tasktracker

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:
    1. Change the working directory to the location where the rpm package files are located.
    2. Install the services:

      Syntax and Example

      rpm -ivh <package_file> <package_file> <package_file>
      rpm -ivh mapr-core-<version>.x86_64.rpm mapr-cldb-<version>.x86_64.rpm \
                    mapr-jobtracker-<version>.x86_64.rpm mapr-webserver-<version>.x86_64.rpm \
      Note: Replace <version> with the exact version string found in the package filename.
  • On Ubuntu, use the dpkg command to install the appropriate packages for the node.
    1. Change the working directory to the location where the deb package files are located.
    2. 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-jobtracker-<version>.x86_64.rpm mapr-webserver-<version>.x86_64.rpm \
      Note: Replace <version> with the exact version string found in the package filename.

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, such as the hbase-internal package for mapr-hbase-regionserver. See Packages and Dependencies for MapR Software for details.