-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathin-container.sh
67 lines (55 loc) · 1.06 KB
/
in-container.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
inhadoop(){
echo "welcome to hadoop-master"
docker exec -it hadoop-master /bin/bash
}
inhive(){
echo "welcome to hive"
docker exec -it hive-s1 /bin/bash
}
inspark(){
echo "welcome to spark-master"
docker exec -it spark-master /bin/bash
}
inhbase(){
echo "welcome to hbase-master"
docker exec -it hbase-master /bin/bash
}
inzookeeper(){
echo "welcome to zoo1"
docker exec -it zoo1 /bin/bash
}
inmysql(){
echo "welcome to mysql"
docker exec -it mysql /bin/bash
}
echo "!!! welcome to hadoop world !!! "
while true
do
echo "==select a container to exec =="
echo " [1] hadoop-master "
echo " [2] hive "
echo " [3] spark-master "
echo " [4] hbase "
echo " [5] zookeerper "
echo " [6] inmysql "
echo " [0] exit "
echo "==============================="
read option
case ${option} in
1) inhadoop
;;
2) inhive
;;
3) inspark
;;
4) inhbase
;;
5) inzookeeper
;;
6) inmysql
;;
*) exit 0
;;
esac
done