-
Notifications
You must be signed in to change notification settings - Fork 6
/
hdfs-datanode-controller.json
73 lines (73 loc) · 2.17 KB
/
hdfs-datanode-controller.json
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
67
68
69
70
71
72
73
{
"id" : "hdfsDatanodeController",
"kind" : "ReplicationController",
"apiVersion" : "v1beta1",
"desiredState" : {
"replicas" : 2,
"replicaSelector" : {
"name" : "hdfs-datanode"
},
"podTemplate" : {
"desiredState" : {
"manifest" : {
"version" : "v1beta1",
"id" : "hdfs-datanode",
"containers" : [{
"name" : "hadoop-hdfs-datanode",
"image" : "bioshrek/hadoop-hdfs-datanode:cdh5",
"ports" : [{
"containerPort" : 50010,
"hostPort" : 50010
}, {
"containerPort" : 50020,
"hostPort" : 50020
}
],
"imagePullPolicy" : "PullNever",
"volumeMounts" : [{
"name" : "hadoop-hdfs-log-dir",
"mountPath" : "/home/chianyu/shared_with_docker_container/hadoop-log-dir"
}, {
"name" : "hadoop-hdfs-namenode-dir",
"mountPath" : "/home/chianyu/shared_with_docker_container/cdh5/nn"
}, {
"name" : "hadoop-hdfs-datanode-dir",
"mountPath" : "/home/chianyu/shared_with_docker_container/cdh5/dn"
}
]
}
],
"volumes" : [{
"name" : "hadoop-hdfs-log-dir",
"source" : {
"hostDir" : {
"path" : "/home/chianyu/shared_with_docker_container/hadoop-log-dir"
}
}
}, {
"name" : "hadoop-hdfs-namenode-dir",
"source" : {
"hostDir" : {
"path" : "/home/chianyu/shared_with_docker_container/cdh5/nn"
}
}
}, {
"name" : "hadoop-hdfs-datanode-dir",
"source" : {
"hostDir" : {
"path" : "/home/chianyu/shared_with_docker_container/cdh5/dn"
}
}
}
]
}
},
"labels" : {
"name" : "hdfs-datanode"
}
}
},
"labels" : {
"name" : "hdfs-datanode"
}
}