Set Up a Local Repository: RHEL/CentOS

Using a maprtech.repo file, you specify URLs of the RHEL/CentOS packages. See the Release Notes for the URLs for all release packages. You also need to install EPEL if you use the mapr-metrics server.

  1. Log in as root on the node or use sudo.
  2. Create the following directory if it does not exist: /var/www/html/yum/base
  3. On a computer that is connected to the internet, download the following files, substituting the appropriate <version> and <datestamp>:
    http://package.mapr.com/releases/v<version>/redhat/mapr-v<version>GA.rpm.tgz
    http://package.mapr.com/releases/ecosystem-5.x/redhat/mapr-ecosystem-5.x-<datestamp>.rpm.tgz
  4. Copy the files to /var/www/html/yum/base on the node, and extract them there.
    tar -xvzf mapr-v<version>GA.rpm.tgz
    tar -xvzf mapr-ecosystem-5.x-<datestamp>.rpm.tgz
  5. Create the base repository headers.
    createrepo /var/www/html/yum/base
  6. Verify that the content of the new /var/www/html/yum/base/repodata directory contains filelists.xml.gz, other.xml.gz, primary.xml.gz, and repomd.xml.
  7. On each node, create a text file called maprtech.repo in /etc/yum.repos.d.
    [maprtech]
    name=MapR Technologies, Inc.
    baseurl=http://<host>/yum/base
    enabled=1
    gpgcheck=0
  8. Download and install EPEL (Extra Packages for Enterprise Linux) if you use the mapr-metrics service; otherwise, skip this step.
    • RHEL/CentOS 6.x:
      wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
      rpm -Uvh epel-release-6*.rpm
    • RHEL/CentOS 7.0
      wget http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
      rpm -Uvh epel-release-7*.rpm