...
Code Block | ||||
---|---|---|---|---|
| ||||
version: "3" services: datanode: image: apache/hadoop-runner volumes: - ../../ozone:/opt/hadoop ports: - 9864 command: ["/opt/hadoop/bin/ozone","datanode"] env_file: - ./docker-config ozoneManager: image: apache/hadoop-runner volumes: - ../../ozone:/opt/hadoop ports: - 9874:9874 environment: ENSURE_OM_INITIALIZED: /data/metadata/ozoneManager/current/VERSION env_file: - ./docker-config command: ["/opt/hadoop/bin/ozone","om"] scm: image: apache/hadoop-runner volumes: - ../../ozone:/opt/hadoop ports: - 9876:9876 env_file: - ./docker-config environment: ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION command: ["/opt/hadoop/bin/ozone","scm"] |
...
* Storage Container Manager: http://localhost:9876/
* Key Space Manager: http://localhost:9874/
* Datanode: please check the ports with docker ps as each datanode has different port from the ephemeral port range (to avoid port conflicts in case of multiple datanodes)
...
The containers could be configured by environment variables. We just moved out the env definitions to an external file to avoid duplication.
For more detailed explanation of the Configuration variables see the OzoneConfiguration page.
The flokkr base image contains a simple script to convert environment variables to files, based on naming convention. All of the environment variables will be converted to traditional Hadoop config XMLs or log4j configuration files