First, refer to the Offline installation tutorial:
http://www.jianshu.com/p/debf0e6a3f3b
It says it's for the ubuntu1404 version, but 1604 can also be installed.
After the thunderbolt downloaded and copied to the server, follow the tutorial walk, from the HTTP server, built local source, apt-get install Ambari-server.
These are easy, but at the beginning of Ambari-server setup There are some things you need to manually set up, of course you go all the way to the default he will help you download ORACLEJDK, with PostgreSQL is also very simple, But if you're going to die with your own MySQL and jdk it's a bit of an egg ache.
1, first in the database to it to build user Ambari and database Ambari;
CREATE USER ' Ambari ' @ ' host' identified by ' password ';
SET PASSWORD for ' ambari ' @ ' localhost ' = PASSWORD (' 123123 ');
Create Database Ambari;
2, and then follow the instructions in Setup, select the JDK path (in fact, if you think it command line under the JDK slow, you can also manually copy its address in the Thunder and the next good copy) and MySQL, after choosing MySQL, he will be installed JAVA-ODBC
Apt-get Install Libmysql-java
And he'll ask you to execute/var/lib/ambari-server/resources/ambari-ddl-mysql-create.sql.
Log into the database source can, but there will be a key too long error, do not know if there is no error.
3, Setup after the implementation of success, you can ambari-server start, unfortunately there are errors,
Error: Ambari com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure
Link failure If there is no problem, it is to change the address in the MySQL configuration file my.cnf 127.0.0.1 to 0.0.0.0, restart the solution.
4, then I also met Ambari access deny error, in the database to change the Ambari password, this start finally success ...
5. You can now go to the Web page to begin the installation of configuration node build.
This article is from the "Danielqu" blog, make sure to keep this source http://qujunorz.blog.51cto.com/6378776/1840011
Ubuntu 1604 Build hdp2.4 Hadoop