This is documentation for MapR Version 5.0. You can also refer to MapR documentation for the latest release.

Skip to end of metadata
Go to start of metadata
Icon

The Quick Installer is deprecated. Use the MapR Installer instead.

This installation guide covers the Quick Install method. The MapR quick installer automates the process of configuring a Hadoop cluster and installing MapR software based on node type.

You can install the MapR distribution for Hadoop on a set of nodes from any machine that can connect to the nodes. Using the quick installer, you can configure each node in a MapR cluster as one of the following types: 

Node TypeDescription
Control Node

Control nodes manage the operation of the cluster. Control nodes host the ZooKeeper, CLDB, JobTracker, ResourceManager, and Webserver services. One control node also hosts the HistoryServer.

Data Nodes

Data nodes host the NodeManager, TaskTracker, and FileServer services. These nodes store data, run YARN applications and MapReduce jobs, and process table data.

Control-as-data Nodes

Control-as-data nodes combine control and data node functionality. This node type is appropriate for small clusters.

Client Nodes

Client nodes provide controlled user access to the cluster.

For more information about node types, see Understanding Node Types.

Ecosystem Component Installation

In addition to installing the core components of the MapR Hadoop distribution, the MapR quick installer supports installation of Apache Spark, Hive, and HBase. To install the Spark and Hive ecosystem components, you must use the quick installer configuration file. See Installing Spark and Installing Hive. You can also use the configuration file to install HBase, however when you run the quick installer in interactive mode, the installer prompts you to see if you want HBase or MapR-DB installed. Entering y at these prompts instructs the installer to install HBase and/or MapR-DB during the installation process. 

Installation Steps

To successfully install MapR using the quick installer, complete the following steps:

  1. Make sure your installation machine and nodes meet all of the prerequisites.
  2. Prepare for the installation and set up the installation machine.
  3. Run the quick installer.
  4. Complete the post installation steps.

For more information and guidelines about the MapR installation process, see About Installation.

You may also want to review the following sections in this guide:

Prerequisites

Verify that your installation machine and the nodes that you plan to install MapR on meet the required prerequisites.

Installation Machine Prerequisites

The machine from which you run the quick installer must run one of the following operating systems:

Operating SystemVersion

Ubuntu

12.04 or later
RedHat with the EPEL repository installed 6.1 or later
CentOS with the EPEL repository installed 6.1 or later

SUSE

Icon

To install from a machine running SUSE, you must create a symbolic link named
libssl.so.10, that points to libssl.so.1.0.0 under /usr/lib64 before you install.
Example:

cd /usr/lib64
ln -s libssl.so.1.0.0 libssl.so.10 

11SP3

12

 

MapR Node Prerequisites

The nodes that you install MapR on must meet the following prerequisites:

PrerequisiteDescription
Python2.6 or later
Java1.7 or 1.8
InfrastructureEnsure that the default umask for the root user is set to 0022 on all mapr nodes in the cluster. The umask setting is changed in the /etc/profile file, or in the .cshrc or .login file. The root user must have a 0022 umask because the MapR admin user requires access to all files and directories under the /opt/mapr directory, even those initially created by root services.

Supported
Operating
Systems

You can install MapR on the following 64-bit operating systems:

  • RedHat 6.1 or later
  • CentOS 6.1 or later
  • Ubuntu 12.04 or later
  • SUSE 11SP2
Operating
System
Package
Dependencies 

The operating system on each node must meet the listed package dependencies.
The quick installer should install these dependencies automatically. If not, you can install them manually.
For RedHat and CentOS, you must have the EPEL repository installed for the quick installer to install the dependencies automatically. 

Ubuntu/SUSE Package Dependencies
RedHat/CentOS Package Dependencies

Note: Install these packages manually if the quick installer cannot resolve them.

Refer to the Interoperability Matrix  for more information.

Installing the EPEL Repository

If you need to install the EPEL repository, complete the following steps: 

  1. Download the version of the EPEL repository that corresponds to the version of your operating system:

    EPEL-6
    EPEL-7
  2. Issue the following command to install the EPEL repository, replacing version with the EPEL version: 

    Syntax
    Example

Before You Run the Quick Installer

Before you run the quick installer to install MapR on your cluster, verify that you have completed all of the preparation tasks and set up the installation machine.

Preparing for Installation

Verify that you have completed the following preparation tasks before you set up the installation machine:

TaskDescription
Determine the number
of control nodes 
The MapR installer supports one or three control nodes. Three control nodes are typically sufficient for
clusters up to approximately 100 nodes.
Determine the data
and client nodes 
The MapR installer supports an arbitrary number of data or client nodes.
Ensure all nodes
have internet access 
For online installation only.

Ensure access to a
local repository of MapR
packages and Linux
distribution repositories 

For offline installation only. Ensure that you have access to a local repository of MapR packages and to Linux
distribution repositories. For information about how to create a local repository, see Using a Local Repository
.
Decide if you will install
Spark or Hive 

If you decide to install Apache ecosystem projects, like Spark or Hive, you must install using the configuration file.

Verify that all nodes you
plan to install on are
configured to have the
same login information

If you are using the quick installer in interactive mode, described later in this document, verify that all the nodes
have the same disks for use by the MapR Hadoop Platform.
Identify disks to allocate
to the MapR file sytem  

For each node in the cluster, you must identify which disks you want to allocate to the MapR file system.
If the same set of disks and partitions applies to all nodes in the cluster, you can use 
interactive mode for the installer. 
To specify a distinct set of disks and partitions for individual cluster nodes, you need to use the configuration file.
The installer’s interactive mode and configuration files are discussed in depth later in this document.

Use the lsblk or fdisk -l commands to determine the full path for the disks that you plan to use.

  • The lsblk command prints the available block devices. 
  • The fdisk -l command prints the disk names with their full paths. 

The following examples show sample outputs that print when you run the commands: 

Setting Up the Installation Machine

Complete the following steps to set up the installation machine:

  1. Download the mapr-setup file for the MapR version that you plan to install. The following examples use the wget utility to download mapr-setup for MapR Version 5.0. 

    Ubuntu
    RedHat/CentOS
    SuSE
  2. Navigate to the directory where you downloaded mapr-setup, and enable execute permissions with the following command: 

  3. Run mapr-setup to unpack the installer files to the /opt/mapr-installer directory. The user running mapr-setup must have write access to the /opt and /tmp directories. You can execute mapr-setup with sudo privileges:

    The system extracts the installer and copies the set up files to /opt/mapr-install.  The system prompts you to run /opt/mapr-installer/bin/install to begin the installation process. Follow the guidelines in the Using the MapR Quick Installer section.

Icon

This installer enables password-authenticated ssh login, which remains enabled after installation. You can disable password authentication for ssh manually after installation by adding the following line to the sshd_config file and restarting ssh: PasswordAuthentication no

Using the MapR Quick Installer

Use the MapR quick installer in interactive mode from the command line or provide a configuration file. If you plan to use the configuration file, you can get details about the format and syntax of the file in the Quick Installer Configuration File section. For a full list of quick installer syntax and installation options, refer to the Quick Installer Options section.

Running the Quick Installer

To run the quick installer, login as the root user or use sudo, and issue the following command:

CentOS/RedHat
Icon

As of 4.0.2, you do not need to pass login credentials through the command line when you run the installer. The quick installer prompts you for ssh or private key login credentials based on the information that you provide during configuration.

Interactive Mode Sample Session

The following output reflects a typical interactive-mode session with the MapR quick installer. User input is in bold.

===============================================================================
=                                                                             =
=  __  __                ____    ___              _          _  _             =
= |  \/  |  __ _  _ __  |  _ \  |_ _| _ __   ___ | |_  __ _ | || |  ___  _ __ =
= | |\/| | / _` || '_ \ | |_) |  | | | '_ \ / __|| __|/ _` || || | / _ \| '__|=
= | |  | || (_| || |_) ||  _ <   | | | | | |\__ \| |_| (_| || || ||  __/| |   =
= |_|  |_| \__,_|| .__/ |_| \_\ |___||_| |_||___/ \__|\__,_||_||_| \___||_|   =

=                 |_|                                                         =
=                                                                             =

===============================================================================

Version: 5.0.0

An Installer config file is typically used by experienced MapR admins to skip through the interview process.

Do you have a config file (y/n) [n]: n

Enter the hostnames of all the control nodes separated by spaces or commas []: control-host-01

Icon

Only 1 or 3 control nodes are supported.

Icon

Hostname resolution of all nodes in the cluster must be consistent across cluster nodes and the multi-node installer's driver node (the node from which the installation is launched). For example, either all nodes must be specified with a fully qualified domain name (FQDN) or none of the nodes can be specified with their FQDN.

Enter the hostnames of all the data nodes separated by spaces or commas []: data-host-01,data-host-02
Set MapR User Name [mapr]:
Set MapR User Password [mapr]:

Is this cluster going to run YARN? (y/n) [y]:

Icon

When you install MapR 4.1 or higher, the quick installer enables zero configuration for ResourceManager, which provides automatic failover. For more information about zero configuration, see Zero Configuration Failover for the ResourceManager.

Is this cluster going to run MapReduce1? (y/n) [n]:
Is this cluster going to run Apache HBase? (y/n) [n]:
Is this cluster going to run MapR-DB? (y/n) [y]:

Enter the full path of disks for hosts separated by spaces or commas []: /dev/xvdf,/dev/xvdg

Icon

The MapR quick installer uses the same set of disks and partitions for each node in the cluster. To specify disks and partitions individually for each node, use a configuration file.

Once you have specified the cluster’s configuration information, the MapR quick installer displays the configuration and asks for confirmation:

       Current Information (Please verify if correct)
       ==============================================

       Accessibility settings:

           Cluster Name: "my.cluster.com"
           MapR User Name: "mapr"
           MapR Group Name: "mapr"
           MapR User UID: "2000"
           MapR User GID: "2000"
           MapR User Password (Default: mapr): "****"

       Functional settings:

           WireLevel Security: "n"
           MapReduce Services: "n"
           YARN: "y" 

           MapR-DB: "y"
           HBase: "n"
           Disks to use: "/dev/xvdf,/dev/xvdg"
           Client Nodes: ""
           Control Nodes: "control-host-01"
           Data Nodes: "data-host-01,data-host-02"
           Repository (will download core software from here): "http://package.mapr.com/releases"
           Ecosystem Repository (will download packages like Pig, Hive etc from here): "http://package.mapr.com/releases/ecosystem"
           MapR Version to Install: "5.0.0"
           Java Version to Install: "OpenJDK7"
           Allow Control Nodes to function as Data Nodes (Not recommended for large clusters): "n"
           Local Repository: "n"

       Metrics settings:

           Metrics DB Host and Port: ""
           Metrics DB User Name: ""
           Metrics DB User Password: ""
           Metrics DB Schema: ""

(c)ontinue with install, (m)odify options, or save current configuration and (a)bort? (c/m/a) [c]: m

Icon

Before you proceed with the installation, you can modify various settings. For example, you can set the stripe width (the number of disks in each storage pool) by selecting the sw option from the modification menu. You should also force format your disks if they were previously used in a MapR installation.

For a complete list of configuration properties that you can change, see About Installation.

As you continue with the installation, the installer prompts you for the login credentials:

Icon

When prompted for a private key, you must enter y or n.


(c)ontinue with install, (m)odify options, or save current configuration and (a)bort? (c/m/a) [c]: c
SSH Username: root
Private Key? [y/n]: y
Path to Private Key: ~/keys/private_key.pem
SSH password: ****
Now running on Added Control Nodes: [control-host-01]

The quick installer first sets up the control nodes in parallel, then sets up data nodes in groups of ten nodes at a time. Pre-requisite packages are automatically downloaded and installed by the MapR quick installer.

Quick Installer Options

When you use options, include the new or the add parameter after the option to specify a new installation or an addition to an existing installation.

Usage

The following table lists the available options with their descriptions:

 

Option

Description

-h or --help

Displays help text.

-u or --user <remote user>

Specifies a user name that the MapR quick installer uses to connect to the cluster nodes.

-k or --ask-pass

Request the remote ssh password interactively.

--password

Specifies the remote ssh user’s password. Note: You cannot use this option if you are specifying a private key with the --private-key option.

--private-key <path to private key file>

Specifies a path to a private key file used to authenticate the connection. Note: You cannot use the --password option if you are specifying a private key.

-s or --sudo

Executes operations on the target nodes using sudo. If the user specified with the -u option is not root, you must use this option.

-U or --sudo-user <sudo user>

Specifies the username of the sudo user. This username is root on most systems.

-K or --ask-sudo-pass

Requests the sudo password interactively.

--sudo-password

Specifies the sudo user’s password.

--skip-checks

Skips requirement pre-checks.

--quiet

Runs the installer in a non-interactive mode.

--cfg <path to config file location>

Installs with the configuration file at the specified path.

--debug

Run in debug mode. Debug mode includes more verbose reports on installer activity.

Quick Installer Manifest File

The MapR quick installer generates a manifest file in the /opt/mapr-installer/var directory named manifest.yml. The manifest file stores your cluster’s installation state. When you add and option to an existing installation, the quick installer checks the manifest for the cluster’s current installation state.

Since the manifest file is generated on the node from which you installed MapR, you must run the quick installer from the same node if you are performing an addition to an existing installation. Since new installations do not reference a manifest file,  you can perform new installations can from any node.

Quick Installer Configuration File

Installation with a configuration file is appropriate when:

  • You want to perform a non-interactive installation for speed or repetition.

  • The target nodes have different disk configurations.

  • You want to install an Apache ecosystem component like Spark or Hive.

To perform this type of installation, you must first create a configuration file. The example file, config.example, in the /opt/mapr-installer/bin directory shows the expected format of an installation configuration file.

For a new installation, all sections must be present in the configuration file, although the [Data_Nodes] and [Client_Nodes] sections can be left empty. For additions to an existing installation, the [Control_Nodes][Data_Nodes], and [Client_Nodes] must be present, although they can be left empty. Other sections in the configuration file are silently ignored for additions.

The value of the Disks element of the [Defaults] section provides a fallback in the case where a node is specified in a previous [Control_Nodes][Data_Nodes], or [Client_Nodes] section without any disk information.

If the disks were used for a previous MapR installation, you must set ForceFormat to true.

Icon

ForceFormat reformats the disk, and any existing data will be permanently lost.

You do not have to specify values for the keys in the [Defaults] section, but each of the keys must be present.

Once the configuration file is created, you can initiate installation with one of the following commands.

Ubuntu
RedHat/CentOS
SuSE

Installing Spark Using the Configuration File

To install Spark, uncomment and complete the configuration in the [Spark] section of the configuration file.  You must specify one or more hostnames to be SparkMaster nodes, which coordinate execution of Spark jobs, and one or more hostnames to serve as the SparkWorker nodes, which execute Spark jobs.  You can also modify the Spark memory configuration settings based on your environment.

Installing Hive Components using the Configuration File

To install Hive client and server components, uncomment and complete the configuration under the [Hive] section in the configuration file.  You may configure one or more hostnames on which to install the Hive clients, typically the same hostnames as specified in the [Clients] section.  One or more hostnames can also be provided for installation of HiveServer2, and a single hostname on which to install the Hive metastore. The Hive metastore will be configured to use the default Derby database.

Post Installation

To complete the post installation process, follow these steps:

  1. Access the MCS by entering the following URL in your browser, substituting the IP address with the IP address or hostname of a control node in your cluster:
    https://<ip_address>:8443
    Compatible browsers include Chrome, Firefox 3.0 and above, Safari (see Browser Compatibility for more information), and Internet Explorer 10 and above. 

  2. If a message about the security certificate appears, click Proceed anyway.
  3. Log in with the MapR user name and password that you set during the installation.
  4. To register and apply a license, click Manage Licenses in the upper right corner, and follow the instructions to add a license via the web.
    See Managing Licenses for more information.
  5. Create separate volumes so you can specify different policies for different subsets of data. See Managing Data with Volumes for more information.
  6. Set up topology so the cluster is rack-aware for optimum replication. See Setting up Node Topology for more information. 

Troubleshooting

The Quick Installer fails with permissions errors: Many Ubuntu systems disable the root login for security reasons.

Resolution: Start the quick installer with the following options:

# sudo /opt/mapr-installer/bin/install -u <user> -s -U root [--sudo-password <password> | --ask-sudo-pass] new

Icon

You must use either the --sudo-password or the --ask-sudo-pass option. The --sudo-password option requires you to type the sudo password in the command line. The --ask-pass option requests the sudo password interactively.

 

The Quick Installer fails to format disks: The installer detected a previous installation of MapR software and displays a message similar to this:

Resolution: Select the ForceFormat option from the modify menu and set the value to true. Next, select continue to run the quick installer again. You can also edit the config.example file and change the value for ForceFormat to true, then run the installer.

Client disconnection disrupts my installation processTo prevent issues with client disconnection from affecting the install process, run the MapR quick installer from a screen or tmux session.

Using the MapR Quick Installer on a cloud installation: Cloud computing services assign you a private key for use with your cloud computing nodes. Typically, private key files use the .pem extension. To use this private key with the MapR quick installer, verify that the permissions for the file are 0600 (-rw-------). You can use the chmod command to set the permissions, as in the following example:

$ chmod 0600 filename.pem

Once the file has the correct permissions, specify the path to the private key file with the --private-key option.

The installer hangs at the ‘Configuring MapR Services’ step: The installer reports its activity with output similar to the following example:

One potential cause of this error condition is that the MapR user specified already exists on one of the nodes. In this case, the installer does not overwrite the credentials for that existing user and cannot authenticate to that node.

Resolution: Examine the log files to determine the precise cause of the error.

The apt-get utility fails with a ‘cannot get lock’ error message: The MapR Quick Installer requires root privileges. When root privileges are not available, this error message can result.

Resolution: Check the sudo or sudo-user settings on the cluster nodes, then run the MapR Quick Installer with the -u <user> -s -U root -K new flags, as in the following example:

# sudo /opt/mapr-installer/bin/install -u <user> -s -U root -K new

  • No labels