kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Commented] (KYLIN-4446) Kylin on kubernetes in a quickstart env
Date Mon, 04 May 2020 07:20:00 GMT

    [ https://issues.apache.org/jira/browse/KYLIN-4446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17098733#comment-17098733
] 

ASF GitHub Bot commented on KYLIN-4446:
---------------------------------------

hit-lacus commented on a change in pull request #1182:
URL: https://github.com/apache/kylin/pull/1182#discussion_r419249812



##########
File path: kubernetes/example/deployment/kylin-query/kylin-query-statefulset.yaml
##########
@@ -0,0 +1,143 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+  name: kylin-query
+  namespace: kylin-example
+  labels:
+    app: kylin
+    role: query
+    environment: poc
+    version: 3.0.1
+    hadoop.version: cdh5.7
+spec:
+  serviceName: kylin-query-svc
+  replicas: 1
+  selector:
+    matchLabels:
+      app: kylin
+      role: query
+  template:
+    metadata:
+      labels:
+        app: kylin
+        role: query
+    spec:
+      hostAliases:
+        - ip: "10.1.3.90"
+          hostnames:
+            - "cdh-master"
+        - ip: "10.1.3.93"
+          hostnames:
+            - "cdh-worker-1"
+        - ip: "10.1.3.94"
+          hostnames:
+            - "cdh-worker-2"
+        - ip: "10.1.3.91"
+          hostnames:
+            - "cdh-client"
+      containers:
+      - name: kylin
+        image: kylin-client:3.0.1-cdh57
+        imagePullPolicy: IfNotPresent
+        command:
+        - sh
+        - -c
+        args:
+        - cp $KYLIN_HOME/tomcat-config/* $KYLIN_HOME/tomcat/conf;
+          cp $KYLIN_HOME/kylin-more-config $KYLIN_HOME/tomcat/webapps/kylin/WEB-INF/classes/;
+          $TOOL_HOME/bootstrap.sh server -d;
+        ports:
+        - containerPort: 7070
+        - containerPort: 7443
+        volumeMounts:
+          - name: kylin-query-config
+            mountPath: /home/apache_kylin/kylin/conf
+          - name: tomcat-config
+            mountPath: /home/apache_kylin/kylin/tomcat-config
+          - name: kylin-more-config
+            mountPath: /home/apache_kylin/kylin/kylin-more-config/
+          - name: hadoop-config
+            mountPath: /etc/hadoop/conf
+          - name: hive-config
+            mountPath: /etc/hive/conf
+          - name: hbase-config
+            mountPath: /etc/hbase/conf
+          - name: kylin-logs
+            mountPath: /home/apache_kylin/kylin/logs
+          - name: tomcat-logs
+            mountPath: /home/apache_kylin/kylin/tomcat/logs
+        resources:
+          requests:
+            memory: 2Gi
+            cpu: 700m
+          limits:
+            memory: 2Gi
+            cpu: 700m
+      - name: filebeat
+        image: docker.elastic.co/beats/filebeat:6.4.3
+        args:
+        - -c
+        - /usr/share/filebeat/config/filebeat.yml
+        - -e
+        volumeMounts:
+        - name: kylin-logs
+          mountPath: /home/apache_kylin/kylin/logs
+        - name: tomcat-logs
+          mountPath: /home/apache_kylin/kylin/tomcat/logs
+        - name: filebeat-config
+          mountPath: /usr/share/filebeat/config
+          readOnly: true
+        resources:
+          requests:
+            memory: 1Gi
+            cpu: 300m
+          limits:
+            memory: 1Gi
+            cpu: 300m
+      volumes:
+      - name: kylin-logs
+        emptyDir:
+          sizeLimit: 3Gi
+      - name: tomcat-logs
+        emptyDir:
+          sizeLimit: 2Gi
+      - configMap:

Review comment:
       I am not quite understand . Query server need hadoop configuration file such as `hbase-site.xml`.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Kylin on kubernetes in a quickstart env
> ---------------------------------------
>
>                 Key: KYLIN-4446
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4446
>             Project: Kylin
>          Issue Type: Sub-task
>          Components: Integration
>            Reporter: Xiaoxiang Yu
>            Assignee: Xiaoxiang Yu
>            Priority: Major
>              Labels: kubernetes
>             Fix For: v3.1.0
>
>   Original Estimate: 48h
>          Time Spent: 2h
>  Remaining Estimate: 46h
>
> For a quick-start/PoC purpose, please consider use this template, it will only deploy
one Kylin instance with role {color:#de350b}*ALL* {color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message