KYLIN-4181 Schedule Kylin using Kubernetes#864
KYLIN-4181 Schedule Kylin using Kubernetes#864TempleZhou wants to merge 1 commit intoapache:masterfrom
Conversation
kubernetes/kylin-statefulset.yaml
Outdated
| - bash | ||
| - '-c' | ||
| - '${KYLIN_HOME}/bin/kylin.sh run' | ||
| image: 'kylin:3.0.0-alpha2-cdh57' |
kubernetes/Dockerfile
Outdated
| FROM centos:centos7 | ||
|
|
||
| ENV CDH_VERSION 5.7.6 | ||
| ENV JAVA_VERSION 1.8.0 |
There was a problem hiding this comment.
A Dockerfile has been committed to Kylin. Could yout reuse it ?
There was a problem hiding this comment.
Emm... the committed dockerfile is self-contained and work with Apache version instead of CDH version. It seems to prepare for experiment, I think.
There was a problem hiding this comment.
Hi, @TempleZhou , what do you hope? We can work to make it usable in production Environment.
There was a problem hiding this comment.
Hi @TempleZhou, how about split docker image as 2 part: one is base image, and the other is kylin image.
Kylin docker image base on base image (hadoop-client image).
And we can also provide 2 base image: one is apache version, the other is CDH version.
It will benefit users who owns different version of hadoop version for their environment. They can provide base image by their own, and also can use kylin image directly.
What do you think?
kubernetes/README.md
Outdated
| Finally, create the StatefulSet and try to use it: | ||
|
|
||
| ```bash | ||
| kubectl apply -f kylin-statefulset.yaml |
There was a problem hiding this comment.
It's better to have an ingress support
bca96c1 to
dc6f409
Compare
|
Can one of the admins verify this patch? |
1 similar comment
|
Can one of the admins verify this patch? |
Pull Request Test Coverage Report for Build 5453
💛 - Coveralls |
e2e021f to
f293882
Compare
Codecov Report
@@ Coverage Diff @@
## master #864 +/- ##
===========================================
- Coverage 25.11% 25.1% -0.01%
- Complexity 6178 6179 +1
===========================================
Files 1433 1433
Lines 87270 87270
Branches 12218 12218
===========================================
- Hits 21917 21912 -5
- Misses 63205 63209 +4
- Partials 2148 2149 +1
Continue to review full report at Codecov.
|
f293882 to
4c4f625
Compare
4c4f625 to
f843f5a
Compare
sanjulian
left a comment
There was a problem hiding this comment.
I'm not sure the eco/support system should be provide in this PR: such as log solution, memcached and some clean work: clean log, clean trash, storage, backup metadata...
| - | | ||
| set -ex | ||
| # initialize the keytab | ||
| kinit -kt /home/kylin/kylin.keytab kylin |
There was a problem hiding this comment.
Maybe we can create a bootstrap.sh to includes these command, and exec the shell script in here.
| - | | ||
| set -ex | ||
| # initialize the keytab | ||
| kinit -kt /home/kylin/kylin.keytab kylin |
There was a problem hiding this comment.
Do we have any keytab refresh requirement? For example, refresh keytab every ** minutes.
|
@TempleZhou How do you solve the problem of unstable ip when pod restart? |
Hi @Smallhi , I don't know why you need to care about the pod IP as we access the Kylin instance using domain (Ingress). |
|
@TempleZhou In our prod env, we also use k8s as we deploy env, we found that, if we define kylin.server.mode = query ,we also need to define kylin.server.cluster-servers= ip1:7070,ip2:7070... |
| @@ -0,0 +1,78 @@ | |||
| FROM centos:6.9 | |||
|
|
|||
| ARG APACHE_MIRRORS=http://mirrors.aliyun.com | |||
There was a problem hiding this comment.
Please use the official apache repository
| @@ -0,0 +1,78 @@ | |||
| FROM centos:6.9 | |||
There was a problem hiding this comment.
It is not recommended to use the operating system as the base image, you can use the base image provided by maven. Https://hub.docker.com/_/maven
You only need to set the kylin.server.host-address=$hostname, and the kylin instance will register the information in Zookeeper, related issue: https://issues.apache.org/jira/browse/KYLIN-3820 |
| kinit -kt /home/kylin/kylin.keytab kylin | ||
| # set the kylin.server.mode | ||
| sed "s/kylin\.server\.mode.*/kylin\.server\.mode=all/g" /mnt/kylin-config/kylin.properties > ${KYLIN_HOME}/conf/kylin.properties | ||
| sed -i "s/kylin\.server\.host-address.*/kylin\.server\.host-address=`hostname`\.kylin:7070/g" ${KYLIN_HOME}/conf/kylin.properties |
There was a problem hiding this comment.
@Smallhi Maybe, you need pay attention to my postStart script.
|
Should close this PR, because it is contained in #1182 and commits is been merged, thank you @TempleZhou . |
No description provided.