mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update ambari
This commit is contained in:
parent
b9677fcf8a
commit
f265a1bab5
@ -6,46 +6,36 @@ developing software for provisioning, managing, and monitoring Apache Hadoop
|
|||||||
clusters. Ambari provides an intuitive, easy-to-use Hadoop management web UI
|
clusters. Ambari provides an intuitive, easy-to-use Hadoop management web UI
|
||||||
backed by its RESTful APIs.
|
backed by its RESTful APIs.
|
||||||
|
|
||||||
## docker-compose.yml
|
Make sure that ambari-server is reachable by ambari-agents.
|
||||||
|
|
||||||
```yaml
|
|
||||||
ambari:
|
|
||||||
image: vimagick/ambari
|
|
||||||
hostname: ambari-server
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
volumes:
|
|
||||||
- ./data/ambari:/etc/ambari-server/conf
|
|
||||||
links:
|
|
||||||
- postgres
|
|
||||||
extra_hosts:
|
|
||||||
- ambari-agent1:172.16.1.101
|
|
||||||
- ambari-agent2:172.16.1.102
|
|
||||||
- ambari-agent3:172.16.1.103
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
postgres:
|
|
||||||
image: postgres:alpine
|
|
||||||
volumes:
|
|
||||||
- /data/postgres:/var/lib/postgresql/data
|
|
||||||
environment:
|
|
||||||
- POSTGRES_USER=ambari
|
|
||||||
- POSTGRES_PASSWORD=ambari
|
|
||||||
- POSTGRES_DB=ambari
|
|
||||||
restart: unless-stopped
|
|
||||||
```
|
|
||||||
|
|
||||||
> Make sure that ambari-server is reachable by ambari-agents.
|
|
||||||
|
|
||||||
## Up and Running
|
## Up and Running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
|
||||||
$ docker-compose exec ambari bash
|
$ docker-compose exec ambari bash
|
||||||
>>> ambari-server setup
|
>>> ambari-server setup
|
||||||
|
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)?
|
||||||
>>> PGUSER=ambari PGPASSWORD=ambari psql -h postgres -d ambari -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql
|
>>> PGUSER=ambari PGPASSWORD=ambari psql -h postgres -d ambari -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql
|
||||||
>>> ambari-server start
|
CREATE TABLE ...
|
||||||
$ curl localhost:8080
|
CREATE INDEX ...
|
||||||
|
|
||||||
|
$ docker-compose exec ambari ambari-server start
|
||||||
|
Waiting for server start........................
|
||||||
|
Server started listening on 8080
|
||||||
|
Ambari Server 'start' completed successfully.
|
||||||
|
|
||||||
|
$ curl http://localhost:8080
|
||||||
```
|
```
|
||||||
|
|
||||||
[1]: https://ambari.apache.org/
|
[1]: https://ambari.apache.org/
|
||||||
|
@ -1,25 +1,28 @@
|
|||||||
ambari:
|
version: "3.7"
|
||||||
image: vimagick/ambari
|
|
||||||
hostname: ambari-server
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
volumes:
|
|
||||||
- ./data/ssh:/root/.ssh
|
|
||||||
- ./data/ambari:/etc/ambari-server/conf
|
|
||||||
links:
|
|
||||||
- postgres
|
|
||||||
extra_hosts:
|
|
||||||
- ambari-agent1:172.16.1.101
|
|
||||||
- ambari-agent2:172.16.1.102
|
|
||||||
- ambari-agent3:172.16.1.103
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
postgres:
|
services:
|
||||||
image: postgres:alpine
|
|
||||||
volumes:
|
ambari:
|
||||||
- /data/postgres:/var/lib/postgresql/data
|
image: vimagick/ambari
|
||||||
environment:
|
hostname: ambari-server
|
||||||
- POSTGRES_USER=ambari
|
ports:
|
||||||
- POSTGRES_PASSWORD=ambari
|
- "8080:8080"
|
||||||
- POSTGRES_DB=ambari
|
volumes:
|
||||||
restart: unless-stopped
|
- ./data/ambari:/etc/ambari-server/conf
|
||||||
|
extra_hosts:
|
||||||
|
- ambari-agent1:172.16.1.101
|
||||||
|
- ambari-agent2:172.16.1.102
|
||||||
|
- ambari-agent3:172.16.1.103
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:alpine
|
||||||
|
volumes:
|
||||||
|
- ./data/postgres:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=ambari
|
||||||
|
- POSTGRES_PASSWORD=ambari
|
||||||
|
- POSTGRES_DB=ambari
|
||||||
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user