Set Up a Local Repository: Ubuntu
About this task
You create a local repository from files that you download from the internet, and then add the repositories to each node in the cluster. The files that you download differ from version to version. See the Release Notes for the URLs for all versions.
Procedure
- Login as root on the machine where you will set up the repository.
-
Change to the directory
/root
and create the following directories within it: -
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>/ubuntu/mapr-v<version>GA.deb.tgz http://package.mapr.com/releases/ecosystem-5.x/ubuntu/mapr-ecosystem-5.x-<datestamp>.deb.tgz
-
Copy the files to /root/mapr/mapr on the node, and extract them there.
tar -xvzf mapr-v<version>GA.rpm.tgz tar -xvzf mapr-ecosystem-5.x-<datestamp>.rpm.tgz
-
Navigate to the
/root/mapr/
directory. -
Use
dpkg-scanpackages
to createPackages.gz
in thebinary-amd64
directory.dpkg-scanpackages . /dev/null | gzip -9c > ./dists/binary/optional/binary-amd64/Packages.gz
-
Move the entire
/root/mapr
directory to the default directory served by the HTTP server (for example,/var/www
) and make sure the HTTP server is running. -
Add the following line to
/etc/apt/sources.list
on each node, replacing <host> with the IP address or hostname of the node where you created the repository.deb http://<host</mapr binary optional
-
On each node update the package indexes (as root or with
sudo
).apt-get update
-
Use
apt-get
to install MapR software and Hadoop ecosystem components from the local repository on each node.