In this part, we will install and start Ambari server.

  1. Copy the private key (.pem) file from your PC to the Ambari Server. Save the pem file as id_rsa under directory /home/<user>/.ssh/ in the Ambari server.
  2. SSH to the Ambari server. Add the ambari repository into the repository sources. The example below uses version 2.2.2.
    Plain text
    Copy to clipboard
    Open code in new window
    EnlighterJS 3 Syntax Highlighter
    cd /etc/apt/sources.list.d
    sudo wget http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.2.0/ambari.list
    cd /etc/apt/sources.list.d sudo wget http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.2.0/ambari.list
    cd /etc/apt/sources.list.d
    sudo wget http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.2.0/ambari.list
    

     

  3. Install Ambari Server from the public Ambari repository:
    Plain text
    Copy to clipboard
    Open code in new window
    EnlighterJS 3 Syntax Highlighter
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
    sudo apt-get update
    sudo apt-get install ambari-server
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD sudo apt-get update sudo apt-get install ambari-server
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
    sudo apt-get update
    sudo apt-get install ambari-server
  4. Run Setup.  You can use default parameter here. Use default values for questions.
    Plain text
    Copy to clipboard
    Open code in new window
    EnlighterJS 3 Syntax Highlighter
    sudo ambari-server setup
    sudo ambari-server setup
    sudo ambari-server setup
    
    

    Note: for MySQL, the JDBC driver can be downloaded here.

     

  5. Start Ambari Server.
    Plain text
    Copy to clipboard
    Open code in new window
    EnlighterJS 3 Syntax Highlighter
    sudo ambari-server start
    sudo ambari-server start
    sudo ambari-server start

     

Finally, in the next part, we will deploy a Hadoop cluster.