Skip to content

Instantly share code, notes, and snippets.

@jjelinek
Last active March 17, 2016 23:29
Show Gist options
  • Save jjelinek/28b091e5a2bfcc9685bb to your computer and use it in GitHub Desktop.
Save jjelinek/28b091e5a2bfcc9685bb to your computer and use it in GitHub Desktop.
MapR Installation Steps
=======================
1) Create an Ubuntu 14.04 zone with at least 8GB memory.
2) In GZ, create a zfs dataset 'zones/{zonename}/data' and delegate that
dataset to the zone.
3) In GZ, create at least one 10GB (or larger) zvol in the dataset
(e.g. run: zfs create -V 10g zones/{zonename}/data/vd0)
4) Reboot zone
5) ssh into the zone
6) Download the pre-installer by running:
wget http://package.mapr.com/releases/installer/mapr-setup.sh -P .
7) 'hostname -A' must work and print the hostname. You probably need to fix
up /etc/hosts with an IP/hostname entry (not localhost).
8) You probably want to 'apt-get update' and make sure 'apt-get install' works
properly by installing something.
9) As root:
a) 'uname -a' needs to include the string "ubuntu"
export LX_VERSION="BrandZ virtual Ubuntu linux"
b) run pre-installer
./mapr-setup.sh
c) answer the quesions, this will create a 'mapr' user which you use during
the actual install
10) Before running the installer you need to make sure the newly created 'mapr'
user can ssh login to the 'root' account.
a) add a 'root' password using the 'passwd' command
b) enable root login by running 'passwd -u root'
c) fix the /etc/ssh/sshd_config file so that the "PermitRootLogin" entry
looks like "PermitRootLogin yes"
d) restart the ssh service by running 'service ssh restart'
e) make sure you can ssh from the mapr account into the system as 'root'
by running 'sudo -u mapr bash' then as the 'mapr' user run
'ssh root@{hostname}'. Enter the root password you set in 10a and you
should be able to login
11) As the pre-installer instructed, connect your browser to the zone's
{IP}:9443
12) Login as the 'mapr' user and proceed through the screens answering the
questions.
a) When you get to the screen for "Configure Nodes" there are two things
to do on this screen:
- For "Configure Disks" enter '/dev/zvol0'. If you created more than one
zvol in step 3 then you can assign more than one disk. The names will
be /dev/zvol1, etc.
- For "Configure Remote Authentication" choose "SSH - Password" as the
method. The SSH Username will be 'root' and the SSH Password will
be the root password you set in 10a.
b) If you've done everything right, the next screen (Verify Nodes) should
checkout as green, otherwise you have to go back and fix what you did
wrong.
c) Continue on through the rest of the screens, answering the questions
and letting the software install. This will take a while.
13) If you're lucky, the software will now be installed.
a) If the install fails there are a variety of log files under
/opt/mapr/installer/logs which might have some useful information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment