docker-compose.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. env_file:
  45. - ./docker-config
  46. command: ["/opt/hadoop/bin/hdfs","ksm"]
  47. scm:
  48. image: elek/hadoop-runner:latest
  49. volumes:
  50. - ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
  51. ports:
  52. - 9876:9876
  53. env_file:
  54. - ./docker-config
  55. command: ["/opt/hadoop/bin/hdfs","scm"]