I have been playing around with HortonWorks sandbox and thought it about time I attempt installation on a multi node cluster. Feel free to reach out to me for further support or information. I will be documenting more in the coming weeks.
Add Repo:
wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/2.6.0.0/ambari.list sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD sudo apt-get update
Java 8
sudo apt-get install openjdk-8-jdk
Ambari Install
sudo apt-get install ambari-server
Configure Ambari
I recommend installed as non root. In fact do not do any of the defaults for users and passwords. But it is totally up to you. I will document more as I learn more.
sudo ambari-server setup
Ambari Start / Stop / Restart
sudo ambari-server restart sudo ambari-server start sudo ambari-server stop
Ambari Server Log Directory
I suggest changing the ambari log directory as well.
sudo vi /etc/ambari-server/conf/log4j.properties #Look for the property "ambari.log.dir" and change it. #Don't forget to create the folder you point to and ensure that chown to the user that is running ambari.
Ambari Agent Log Directory
As well change the ambari agent log directory.
sudo vi /etc/ambari-agent/conf/ambari-agent.ini #Look for "logdir" and change to a directory that exists and has permissions.
Non-Root Install
Running as non-root user you will have to change the run directory because otherwise during a system reboot you may get folders not being able to be created. Because /var/run/ gets deleted on each restart and it get’s rebuilt. Do the following:
sudo mkdir -p /home/##NONROOTUSER##/run/ambari-server sudo chown ##NONROOTUSER##:root /home/##NONROOTUSER##/run/ambari-server
Then you have to edit the ambari.properties file.
sudo vi /etc/ambari-server/conf/ambari.properties #Change the following to the folder you created above. bootstrap.dir pid.dir recommendations.dir
You must be logged in to post a comment.