Set Up a Local Repository: SUSE
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 node or use
sudo
. -
Create the following directory if it does not exist:
/var/www/html/zypper/base
-
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>/suse/mapr-v<version>GA.rpm.tgz http://package.mapr.com/releases/ecosystem-5.x/suse/mapr-ecosystem-5.x-<datestamp>.rpm.tgz
-
Copy the files to
/var/www/html/zypper/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
-
Create the base repository headers.
createrepo /var/www/html/zypper/base
-
Verify that the new
/var/www/html/zypper/base/repodata
directory contains the following files.filelists.xml.gz
,other.xml.gz
,primary.xml.gz
,repomd.xml
-
Add the repositories for MapR and the MapR ecosystem packages to each node in the cluster.
zypper ar http://<host>/zypper/base/ maprtech