docker-compose.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. namenode:
  19. image: elek/hadoop-runner:latest
  20. hostname: namenode
  21. volumes:
  22. - ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
  23. ports:
  24. - 50070:50070
  25. - 9870:9870
  26. environment:
  27. ENSURE_NAMENODE_DIR: /data/namenode
  28. env_file:
  29. - ./docker-config
  30. command: ["/opt/hadoop/bin/hdfs","namenode"]
  31. datanode:
  32. image: elek/hadoop-runner:latest
  33. volumes:
  34. - ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
  35. ports:
  36. - 9864
  37. command: ["/opt/hadoop/bin/hdfs","datanode"]
  38. ksm:
  39. image: elek/hadoop-runner:latest
  40. volumes:
  41. - ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
  42. ports:
  43. - 9874:9874
  44. environment:
  45. ENSURE_KSM_INITIALIZED: /data/metadata/ksm/current/VERSION
  46. env_file:
  47. - ./docker-config
  48. command: ["/opt/hadoop/bin/hdfs","ksm"]
  49. scm:
  50. image: elek/hadoop-runner:latest
  51. volumes:
  52. - ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
  53. ports:
  54. - 9876:9876
  55. env_file:
  56. - ./docker-config
  57. environment:
  58. ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION
  59. command: ["/opt/hadoop/bin/hdfs","scm"]