docker-compose.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. version: "3"
  17. services:
  18. ozone.kdc:
  19. image: ahadoop/kdc:v1
  20. namenode:
  21. image: ahadoop/ozone:v1
  22. hostname: namenode
  23. volumes:
  24. - ${OZONEDIR}:/opt/hadoop
  25. ports:
  26. - 9000:9000
  27. environment:
  28. ENSURE_NAMENODE_DIR: /data/namenode
  29. env_file:
  30. - ./docker-config
  31. command: ["/opt/hadoop/bin/hdfs","namenode"]
  32. datanode:
  33. image: ahadoop/ozone:v1
  34. hostname: datanode
  35. volumes:
  36. - ${OZONEDIR}:/opt/hadoop
  37. ports:
  38. - 9874
  39. env_file:
  40. - ./docker-config
  41. command: ["/opt/hadoop/bin/ozone","datanode"]
  42. ksm:
  43. image: ahadoop/ozone:v1
  44. hostname: ksm
  45. volumes:
  46. - ${OZONEDIR}:/opt/hadoop
  47. ports:
  48. - 9874:9874
  49. environment:
  50. ENSURE_KSM_INITIALIZED: /data/metadata/ksm/current/VERSION
  51. env_file:
  52. - ./docker-config
  53. command: ["/opt/hadoop/bin/ozone","ksm"]
  54. scm:
  55. image: ahadoop/ozone:v1
  56. hostname: scm
  57. volumes:
  58. - ${OZONEDIR}:/opt/hadoop
  59. ports:
  60. - 9876:9876
  61. env_file:
  62. - ./docker-config
  63. environment:
  64. ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION
  65. command: ["/opt/hadoop/bin/ozone","scm"]