-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetastore.yaml
50 lines (50 loc) · 1.08 KB
/
metastore.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
apiVersion: v1
kind: Service
metadata:
name: hive-metastore
spec:
selector:
app: hive-metastore
ports:
- protocol: TCP
port: 9083
targetPort: 9083
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hive-metastore
labels:
app: hive-metastore
spec:
replicas: 1
selector:
matchLabels:
app: hive-metastore
template:
metadata:
labels:
app: hive-metastore
spec:
containers:
- name: hive-metastore
image: ebosas/hive-metastore
imagePullPolicy: Always
ports:
- containerPort: 9083
volumeMounts:
- name: metastore-cfg-vol
mountPath: /opt/apache-hive-metastore-3.0.0-bin/conf/metastore-site.xml
subPath: metastore-site.xml
- name: metastore-cfg-vol
mountPath: /opt/hadoop-3.2.0/etc/hadoop/core-site.xml
subPath: core-site.xml
resources:
limits:
memory: 1G
cpu: 500m
volumes:
- name: metastore-cfg-vol
configMap:
name: metastore-cfg