- Change to the
root
user or usesudo.
- Create a text file called
maprtech.repo
in the/etc/yum.repos.d/
directory with the following content, replacingv4.0.2
with the version of MapR that you want to install:[maprtech]
name=MapR Technologies
baseurl=http://package.mapr.com/releases/v4.0.2/redhat/
enabled=1
gpgcheck=0
protect=1
[maprecosystem]
name=MapR Technologies
enabled=1
gpgcheck=0
protect=1
- To install the MapR package key, issue the command appropriate for your Linux distribution:
CentOS/RedHat
rpm --import http://package.mapr.com/releases/pub/maprgpg.key
-
To enable the EPEL repository on CentOS or Red Hat 6.x:
- Download the EPEL repository:
- Install the EPEL repository:
rpm -Uvh epel-release-6*.rpm
- Upgrade yum:
sudo yum upgrade ca-certificates --disablerepo=epel
-
Setting Up the Installation Machine
Complete the following steps to set up the installation machine:
- Download the
mapr-setup
file for the MapR version that you plan to install. The following examples use thewget
utility to downloadmapr-setup
for MapR version 4.0.2, however you can also downloadmapr-setup
for MapR v4.0.1.RedHat/CentOS - Navigate to the directory where you downloaded
mapr-setup,
and enable execute permissions with the following command:chmod 755 mapr-setup
- Run
mapr-setup
to unpack the installer files to the/opt/mapr-installer
directory. The user runningmapr-setup
must have write access to the/opt
and/tmp
directories. You can executemapr-setup
with sudo privileges:sudo ./mapr-setup
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.
- Download the
-
CentOS/RedHat
/opt/mapr-installer/bin/install new
-
Install MapR Service Packages
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)
For more information about the various modes, see Planning the Cluster, MapReduce Version 1, and YARN.
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 nodesmapr-fileserver
mapr-fileserver
mapr-fileserver
Packages to install on
designated cluster nodesmapr-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 commandsmapr-client
mapr-client
mapr-client
To install MapR, select one of the following installation methods:
REF:
http://doc.mapr.com/display/MapR40x/Quick+Installation+Guide
http://doc.mapr.com/display/MapR40x/Quick+Installation+Guide#QuickInstallationGuide-prepare
http://doc.mapr.com/display/MapR/Installing+MapR+Software#InstallingMapRSoftware-UsingMapR%27sInternetrepository
http://serverfault.com/questions/637549/epel-repo-for-centos-6-causing-error
extra money, just search in google for; ideas by Loocijano