Database Reference
In-Depth Information
The default login account is called “admin” with a password of “admin.” When I log in, the Ambari installation
wizard will start automatically and guide me through the installation.
From the Ambari installation wizard, I set the cluster name and select the installation stack. For my example,
I name the cluster “cluster2” and I select HDP 2.1, the lastest installation stack. Next, I specify the server names on
which to install, making sure to use FQDNs (fully qualified domain names). So, instead of specifying the server short
name of “hc2nn,” I use hc2nn.semtech-solutions.co.nz. When I check the hostnames, Ambari does the equivalent of
the Linux hostname -f command to determine the FQDN; if I hadn't used FQDNs, this check would fail. My server list
now looks like this:
hc2nn.semtech-solutions.co.nz
hc2r1m1.semtech-solutions.co.nz
hc2r1m2.semtech-solutions.co.nz
hc2r1m3.semtech-solutions.co.nz
hc2r1m4.semtech-solutions.co.nz
If at this point in your own installation you encounter the following permission-based error, you can install
the Ambari agent manually. This error message is probably related to SELinux and the file labeling used by SSH
(secure shell).
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
A manual installation of the Ambari agent on each node is a workaround for this problem. Then, you would just
be manually installing a component that Ambari has not been able to install automatically. Once you have done this
manually, Ambari will complete the cluster installation for you.
If this error is encountered follow these steps; make sure that the Ambari Centos 6 repository is installed on each
machine:
cd /etc/yum.repos.d/
wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.6.1/ambari.repo
Next, I use the Linux yum command as root to install the Ambari agent on each machine, as follows:
yum install ambari-agent
I edit the Ambari configuration file and set the server hostname to be the fully qualified name of the server:
vi /etc/ambari-agent/conf/ambari-agent.ini
hostname=hc2nn.semtech-solutions.co.nz
To register the Ambari machines, I install the Linux time service ntpd on all servers I intend to use. I use the Linux
yum command as root to install the ntp servers and documentation, and I set the server to start at boot time:
yum install ntp ntpdate ntp-doc
chkconfig ntpd on
Next, I initialize and start the ntpd server:
ntpdate pool.ntp.org
service ntpd start
 
Search WWH ::




Custom Search