Sfoglia il codice sorgente

HDDS-1215. Change hadoop-runner and apache/hadoop base image to use Java8. Contributed by Xiaoyu Yao.

This closes #615

(cherry picked from commit 992489c11ca6710466266250a3933e0281ac4d35)
Xiaoyu Yao 6 anni fa
parent
commit
a55a295c7a

+ 6 - 0
hadoop-ozone/dist/src/main/compose/README.md

@@ -49,3 +49,9 @@ docker-compose scale datanode=5
 ```
 ```
 
 
 Usually the key webui ports are published on the docker host.
 Usually the key webui ports are published on the docker host.
+
+## Known issues
+
+The base image used here is apache/hadoop-runner, which runs with JDK8 by default.
+You may run with JDK11 by specify apache/hadoop-runner:jdk11 as base image in simple mode.
+But in secure mode, JDK 11 is not fully supported yet due to JDK8 dependencies from hadoop-common jars.

+ 3 - 3
hadoop-ozone/dist/src/main/compose/ozone/docker-compose.yaml

@@ -17,7 +17,7 @@
 version: "3"
 version: "3"
 services:
 services:
    datanode:
    datanode:
-      image: apache/hadoop-runner
+      image: apache/hadoop-runner:jdk11
       privileged: true #required by the profiler
       privileged: true #required by the profiler
       volumes:
       volumes:
         - ../..:/opt/hadoop
         - ../..:/opt/hadoop
@@ -28,7 +28,7 @@ services:
       env_file:
       env_file:
         - ./docker-config
         - ./docker-config
    om:
    om:
-      image: apache/hadoop-runner
+      image: apache/hadoop-runner:jdk11
       privileged: true #required by the profiler
       privileged: true #required by the profiler
       volumes:
       volumes:
          - ../..:/opt/hadoop
          - ../..:/opt/hadoop
@@ -41,7 +41,7 @@ services:
           - ./docker-config
           - ./docker-config
       command: ["/opt/hadoop/bin/ozone","om"]
       command: ["/opt/hadoop/bin/ozone","om"]
    scm:
    scm:
-      image: apache/hadoop-runner
+      image: apache/hadoop-runner:jdk11
       privileged: true #required by the profiler
       privileged: true #required by the profiler
       volumes:
       volumes:
          - ../..:/opt/hadoop
          - ../..:/opt/hadoop