- Change to the
rootuser or usesudo. - Create a text file called
maprtech.repoin the/etc/yum.repos.d/directory with the following content, replacingv4.0.2with the version of MapR that you want to install:[maprtech]name=MapR Technologiesbaseurl=http://package.mapr.com/releases/v4.0.2/redhat/enabled=1gpgcheck=0protect=1[maprecosystem]name=MapR Technologiesenabled=1gpgcheck=0protect=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-setupfile for the MapR version that you plan to install. The following examples use thewgetutility to downloadmapr-setupfor MapR version 4.0.2, however you can also downloadmapr-setupfor 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-setupto unpack the installer files to the/opt/mapr-installerdirectory. The user runningmapr-setupmust have write access to the/optand/tmpdirectories. You can executemapr-setupwith sudo privileges:sudo ./mapr-setupThe system extracts the installer and copies the set up files to
/opt/mapr-install. The system prompts you to run/opt/mapr-installer/bin/installto 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-fileservermapr-fileservermapr-fileserverPackages to install on
designated cluster nodesmapr-cldbmapr-zookeepermapr-nfsmapr-webservermapr-metricsmapr-gatewaymapr-jobtrackermapr-tasktrackermapr-cldbmapr-zookeepermapr-nfsmapr-webservermapr-gatewaymapr-resourcemanagermapr-nodemanagermapr-historyservermapr-cldbmapr-zookeepermapr-nfsmapr-webservermapr-metricsmapr-gatewaymapr-jobtrackermapr-tasktrackermapr-resourcemanagermapr-nodemanagermapr-historyserverPackage to install
on client machines that
run hadoop commandsmapr-clientmapr-clientmapr-clientTo 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