Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-2588. Consolidate compose environments #238

Closed
wants to merge 8 commits into from
18 changes: 0 additions & 18 deletions hadoop-ozone/dist/src/main/compose/ozone-recon/.env

This file was deleted.

65 changes: 0 additions & 65 deletions hadoop-ozone/dist/src/main/compose/ozone-recon/docker-compose.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions hadoop-ozone/dist/src/main/compose/ozone-recon/docker-config

This file was deleted.

30 changes: 0 additions & 30 deletions hadoop-ozone/dist/src/main/compose/ozone-recon/test.sh

This file was deleted.

58 changes: 51 additions & 7 deletions hadoop-ozone/dist/src/main/compose/ozone/docker-compose.yaml
Expand Up @@ -18,30 +18,30 @@ version: "3"
services:
datanode:
image: apache/ozone-runner:${OZONE_RUNNER_VERSION}
privileged: true #required by the profiler
privileged: true # required by the profiler
volumes:
- ../..:/opt/hadoop
ports:
- 9864
- 9882
command: ["/opt/hadoop/bin/ozone","datanode"]
command: ["ozone","datanode"]
env_file:
- ./docker-config
om:
image: apache/ozone-runner:${OZONE_RUNNER_VERSION}
privileged: true #required by the profiler
privileged: true
volumes:
- ../..:/opt/hadoop
- ../..:/opt/hadoop
ports:
- 9874:9874
environment:
ENSURE_OM_INITIALIZED: /data/metadata/om/current/VERSION
env_file:
- ./docker-config
command: ["/opt/hadoop/bin/ozone","om"]
command: ["ozone","om"]
scm:
image: apache/ozone-runner:${OZONE_RUNNER_VERSION}
privileged: true #required by the profiler
privileged: true # required by the profiler
volumes:
- ../..:/opt/hadoop
ports:
Expand All @@ -50,4 +50,48 @@ services:
- ./docker-config
environment:
ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION
command: ["/opt/hadoop/bin/ozone","scm"]
command: ["ozone","scm"]
jaeger:
image: jaegertracing/all-in-one:latest
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
ports:
- 16686:16686
prometheus:
image: prom/prometheus
volumes:
- "./prometheus.yml:/etc/prometheus.yml"
command: ["--config.file","/etc/prometheus.yml"]
ports:
- 9090:9090
grafana:
image: grafana/grafana
volumes:
- "../common/grafana/dashboards:/var/lib/grafana/dashboards"
- "../common/grafana/provisioning:/etc/grafana/provisioning"
- "../common/grafana/conf/grafana.ini:/etc/grafana/grafana.ini"
command: ["-config","/etc/grafana/grafana.ini"]
ports:
- 3000:3000
s3g:
image: apache/ozone-runner:${OZONE_RUNNER_VERSION}
privileged: true # required by the profiler
volumes:
- ../..:/opt/hadoop
ports:
- 9878:9878
env_file:
- ./docker-config
command: ["ozone","s3g"]
recon:
image: apache/ozone-runner:${OZONE_RUNNER_VERSION}
privileged: true # required by the profiler
volumes:
- ../..:/opt/hadoop
ports:
- 9888:9888
env_file:
- ./docker-config
environment:
WAITFOR: om:9874
command: ["ozone","recon"]
14 changes: 11 additions & 3 deletions hadoop-ozone/dist/src/main/compose/ozone/docker-config
Expand Up @@ -20,14 +20,22 @@ OZONE-SITE.XML_ozone.scm.names=scm
OZONE-SITE.XML_ozone.scm.datanode.id.dir=/data
OZONE-SITE.XML_ozone.scm.block.client.address=scm
OZONE-SITE.XML_ozone.metadata.dirs=/data/metadata
OZONE-SITE.XML_ozone.handler.type=distributed
OZONE-SITE.XML_ozone.recon.db.dir=/data/metadata/recon
OZONE-SITE.XML_ozone.recon.om.db.dir=/data/metadata/recon
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/data/metadata/reon -> /data/metadata/om

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bharatviswa504 for spotting this. These config values from ozone-recon env as they were.

@avijayanhwx @swagle can Recon use the same directory for both ozone.recon.db.dir and ozone.recon.om.db.dir?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adoroszlai Yes the same directory can be used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @avijayanhwx. Then I think we can keep it as is.

OZONE-SITE.XML_ozone.scm.client.address=scm
OZONE-SITE.XML_ozone.replication=3
OZONE-SITE.XML_hdds.datanode.dir=/data/hdds
OZONE-SITE.XML_ozone.replication=3
OZONE-SITE.XML_hdds.prometheus.endpoint.enabled=true
OZONE-SITE.XML_hdds.profiler.endpoint.enabled=true

ASYNC_PROFILER_HOME=/opt/profiler

HDFS-SITE.XML_rpc.metrics.quantile.enable=true
HDFS-SITE.XML_rpc.metrics.percentiles.intervals=60,300
ASYNC_PROFILER_HOME=/opt/profiler

JAEGER_SAMPLER_PARAM=1
JAEGER_SAMPLER_TYPE=const
JAEGER_AGENT_HOST=jaeger

#Enable this variable to print out all hadoop rpc traffic to the stdout. See http://byteman.jboss.org/ to define your own instrumentation.
#BYTEMAN_SCRIPT_URL=https://raw.githubusercontent.com/apache/hadoop/trunk/dev-support/byteman/hadooprpc.btm
Expand Up @@ -23,13 +23,13 @@ scrape_configs:
- targets:
- "scm:9876"
- "om:9874"
- "ozoneperf_datanode_1:9882"
- "ozoneperf_datanode_2:9882"
- "ozoneperf_datanode_3:9882"
- "ozoneperf_datanode_4:9882"
- "ozoneperf_datanode_5:9882"
- "ozoneperf_datanode_6:9882"
- "ozoneperf_datanode_7:9882"
- "ozoneperf_datanode_8:9882"
- "ozoneperf_datanode_9:9882"
- "ozoneperf_datanode_10:9882"
- "ozone_datanode_1:9882"
- "ozone_datanode_2:9882"
- "ozone_datanode_3:9882"
- "ozone_datanode_4:9882"
- "ozone_datanode_5:9882"
- "ozone_datanode_6:9882"
- "ozone_datanode_7:9882"
- "ozone_datanode_8:9882"
- "ozone_datanode_9:9882"
- "ozone_datanode_10:9882"
8 changes: 6 additions & 2 deletions hadoop-ozone/dist/src/main/compose/ozone/test.sh
Expand Up @@ -18,6 +18,8 @@
COMPOSE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export COMPOSE_DIR

export SECURITY_ENABLED=false

# shellcheck source=/dev/null
source "$COMPOSE_DIR/../testlib.sh"

Expand All @@ -29,9 +31,11 @@ start_docker_env
#Disabling for now, audit parser tool during parse getting exception.
#execute_robot_test om auditparser

execute_robot_test scm basic/basic.robot
execute_robot_test scm basic

execute_robot_test scm gdpr

execute_robot_test scm gdpr/gdpr.robot
execute_robot_test scm s3

stop_docker_env

Expand Down
18 changes: 0 additions & 18 deletions hadoop-ozone/dist/src/main/compose/ozoneperf/.env

This file was deleted.