From 40632c3a1b41fa83010a2f80a790e63aa7777e3e Mon Sep 17 00:00:00 2001 From: zimiao Date: Mon, 11 Mar 2019 11:46:01 +0800 Subject: [PATCH] fix hadoop build error --- docs/pai-management/doc/how-to-setup-dev-box.md | 2 ++ src/dev-box/dev-box-k8s-deploy.yaml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/docs/pai-management/doc/how-to-setup-dev-box.md b/docs/pai-management/doc/how-to-setup-dev-box.md index 11d917bdf4..81e14e9d46 100644 --- a/docs/pai-management/doc/how-to-setup-dev-box.md +++ b/docs/pai-management/doc/how-to-setup-dev-box.md @@ -55,6 +55,7 @@ sudo docker run -itd \ -e COLUMNS=$COLUMNS -e LINES=$LINES -e TERM=$TERM \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /pathConfiguration:/cluster-configuration \ + -v /hadoop-binary:/hadoop-binary \ --pid=host \ --privileged=true \ --net=host \ @@ -99,6 +100,7 @@ sudo docker run -itd \ -e COLUMNS=$COLUMNS -e LINES=$LINES -e TERM=$TERM \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /pathConfiguration:/cluster-configuration \ + -v /hadoop-binary:/hadoop-binary \ --pid=host \ --privileged=true \ --net=host \ diff --git a/src/dev-box/dev-box-k8s-deploy.yaml b/src/dev-box/dev-box-k8s-deploy.yaml index 5963268a96..3b2a892ae3 100644 --- a/src/dev-box/dev-box-k8s-deploy.yaml +++ b/src/dev-box/dev-box-k8s-deploy.yaml @@ -15,6 +15,8 @@ spec: volumeMounts: - mountPath: /var/run/docker.sock name: docker-socket + - mountPath: /hadoop-binary + name: hadoop-binary-path name: dev-box command: [ "/bin/bash", "-c", "--" ] args: [ "while true; do sleep 3000; done;" ] @@ -22,6 +24,9 @@ spec: - name: docker-socket hostPath: path: /var/run/docker.sock + - name: hadoop-binary-path + hostPath: + path: /hadoop-binary hostNetwork: true restartPolicy: Always