Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix hadoop build error (#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzmssg authored Mar 11, 2019
1 parent c885637 commit ea36fea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/pai-management/doc/how-to-setup-dev-box.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
5 changes: 5 additions & 0 deletions src/dev-box/dev-box-k8s-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ 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;" ]
volumes:
- name: docker-socket
hostPath:
path: /var/run/docker.sock
- name: hadoop-binary-path
hostPath:
path: /hadoop-binary
hostNetwork: true
restartPolicy: Always

0 comments on commit ea36fea

Please sign in to comment.