Skip to content

Instantly share code, notes, and snippets.

@geoHeil
Created December 12, 2017 18:24
Show Gist options
  • Save geoHeil/2d0f29ef2bcb9ba99b4213d5ba2985d5 to your computer and use it in GitHub Desktop.
Save geoHeil/2d0f29ef2bcb9ba99b4213d5ba2985d5 to your computer and use it in GitHub Desktop.
# connect to utility node
hostname -f
# output: c
sudo vi /etc/ambari-agent/conf/ambari-agent.ini
# configure hostname=ip-172-31-25-199.eu-west-1.compute.internal
# reload / restart
systemctl restart ambari-agent
systemctl status ambari-agent
systemctl start ambari-agent
yum -y reinstall ambari-agent
yum -y install ambari-server
hostname-f
mysql -uambari -pambari -h ip-172-31-25-199.eu-west-1.compute.internal ambari
mysql -uambari -pambari -h ip-172-31-25-199.eu-west-1.compute.internal ambari < /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql
ambari-server setup
ambari-server
ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment