2019-09-29 02:59:17 +02:00
|
|
|
ambari
|
|
|
|
======
|
|
|
|
|
|
|
|
The [Apache Ambari][1] project is aimed at making Hadoop management simpler by
|
|
|
|
developing software for provisioning, managing, and monitoring Apache Hadoop
|
2019-09-30 01:58:46 +02:00
|
|
|
clusters. [Ambari][2] provides an intuitive, easy-to-use Hadoop management web UI
|
2019-09-29 02:59:17 +02:00
|
|
|
backed by its RESTful APIs.
|
|
|
|
|
2019-09-30 02:10:05 +02:00
|
|
|
![](https://docs.cloudera.com/common/img/product_icons/icon-ambari.png)
|
|
|
|
|
2019-09-30 01:58:46 +02:00
|
|
|
Make sure that ambari-server is reachable by ambari-agents via DNS.
|
2019-09-29 05:28:57 +02:00
|
|
|
|
|
|
|
## Up and Running
|
|
|
|
|
|
|
|
```bash
|
2019-09-30 01:58:46 +02:00
|
|
|
$ docker-compose run --rm server bash
|
2019-09-29 05:28:57 +02:00
|
|
|
>>> ambari-server setup
|
2019-09-29 12:40:40 +02:00
|
|
|
Customize user account for ambari-server daemon [y/n] (n)?
|
|
|
|
Do you want to change Oracle JDK [y/n] (n)?
|
|
|
|
Enter advanced database configuration [y/n] (n)? y
|
|
|
|
Enter choice (4):
|
|
|
|
Hostname (postgres):
|
|
|
|
Port (5432):
|
|
|
|
Database name (ambari):
|
|
|
|
Postgres schema (public):
|
|
|
|
Username (ambari):
|
|
|
|
Enter Database Password (ambari):
|
|
|
|
Proceed with configuring remote database connection properties [y/n] (y)?
|
2019-09-29 05:28:57 +02:00
|
|
|
>>> PGUSER=ambari PGPASSWORD=ambari psql -h postgres -d ambari -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql
|
2019-09-29 12:40:40 +02:00
|
|
|
CREATE TABLE ...
|
|
|
|
CREATE INDEX ...
|
|
|
|
|
2019-09-30 01:58:46 +02:00
|
|
|
$ docker-compose up -d
|
|
|
|
Starting ambari_postgres_1 ... done
|
|
|
|
Starting ambari_server_1 ... done
|
2019-09-29 12:40:40 +02:00
|
|
|
|
2019-09-29 13:26:37 +02:00
|
|
|
$ curl http://localhost:8080/
|
2019-09-29 05:28:57 +02:00
|
|
|
```
|
2019-09-29 02:59:17 +02:00
|
|
|
|
|
|
|
[1]: https://ambari.apache.org/
|
2019-09-30 01:58:46 +02:00
|
|
|
[2]: https://docs.cloudera.com/HDPDocuments/Ambari/Ambari-2.7.4.0/index.html
|