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

Fix hadoop-run build error #2296

Merged
merged 1 commit into from
Mar 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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