-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstreamsets-hcp-mapr.yaml
81 lines (69 loc) · 2.47 KB
/
streamsets-hcp-mapr.yaml
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
74
75
76
77
78
79
80
apiVersion: apps/v1
kind: Deployment
metadata:
name: streamset
namespace: customer-demo
spec:
selector:
matchLabels:
app: streamset
tier: frontend
template:
metadata:
labels:
app: streamset
tier: frontend
spec:
containers:
- name: streamset
image: mkieboom/mapr-pacc-streamsets-docker:streamsets381_mapr610_mep600
ports:
- containerPort: 18630
name: streamset-port
securityContext:
privileged: true
capabilities:
add: ["SYS_ADMIN" , "SYS_RESOURCE"]
# command: ['sleep']
# args: ["99999"]
command: ["/bin/sh","-c"]
args: ["sleep 2 && /opt/mapr/installer/docker/mapr-setup.sh container && sudo -E -u $SDC_USER $SDC_DIST/bin/streamsets dc"]
volumeMounts:
- name: fuse
mountPath: "/dev/fuse"
- name: maprticket-volume
mountPath: "/tmp/ticket/"
- name: streamset-data
mountPath: "/data"
env:
- name: MAPR_CLUSTER
value: "hcp.mapr.cluster" ##### <-----Enter you MapR Cluster Name
- name: MAPR_CLDB_HOSTS
value: "10.1.0.195" ##### <-----Enter you MapR Cluster CLDB Nodes. ## execute the following command on controller : bdmapr maprcli node listcldbs
- name: MAPR_CONTAINER_USER
value: "mapr" ##### <-----Enter you MapR Cluster User
- name: MAPR_CONTAINER_GROUP
value: "mapr" ##### <-----Enter you MapR Cluster Users Group
- name: MAPR_CONTAINER_UID
value: "5000" ##### <-----Enter you MapR User UID
- name: MAPR_CONTAINER_GID
value: "5000" ##### <-----Enter you MapR User GID
- name: MAPR_MOUNT_PATH
value: "/mapr" ##### <-----Global Namespace Path
- name: SDC_JAVA_OPTS
value: "-Dmaprlogin.password.enabled=true"
- name: MAPR_TICKETFILE_LOCATION
value: "/tmp/ticket/longlived_ticket"
# securityContext:
# runAsUser: 0
volumes:
- name: fuse
hostPath:
path: /dev/fuse
- name: maprticket-volume
secret:
secretName: maprticket
- name: streamset-data
hostPath:
path: /tmp
type: DirectoryOrCreate