You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yang Wang (Jira)" <ji...@apache.org> on 2020/12/17 06:20:00 UTC
[jira] [Commented] (FLINK-20631) cannot find native-k8s when
deploying flink using native kubernetes
[ https://issues.apache.org/jira/browse/FLINK-20631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17250822#comment-17250822 ]
Yang Wang commented on FLINK-20631:
-----------------------------------
It seems that you are using the image for 1.11. Could you please build your own 1.12 image and have a try again? We are coming across some issue when publishing the 1.12 image to docker hub. You could build the image via the following steps.
* git clone [https://github.com/apache/flink-docker.git]
* cd scala_2.11-java8-debian
* sudo docker build -t flink:1.12.0 .
* docker push
> cannot find native-k8s when deploying flink using native kubernetes
> --------------------------------------------------------------------
>
> Key: FLINK-20631
> URL: https://issues.apache.org/jira/browse/FLINK-20631
> Project: Flink
> Issue Type: Bug
> Components: Deployment / Kubernetes
> Affects Versions: 1.12.0
> Reporter: renming.qi
> Priority: Major
>
> When deploying flink using native k8s according to the doc [https://ci.apache.org/projects/flink/flink-docs-release-1.12/deployment/resource-providers/native_kubernetes.html,] the command
> {{in the doc }}
>
> {code:java}
> ./bin/kubernetes-session.sh -Dkubernetes.cluster-id=my-first-flink-cluster
> {code}
> {{will fail due to }}
>
> {code:java}
> docker-entrypoint.sh: line 125: exec:native-k8s: not found
> {code}
>
> The deployment will pull fink:latest from docker hub and run the following command which is got by kubectl describe pod xxx
> {code:java}
> Command:
> /docker-entrypoint.sh
> Args:
> native-k8s
> $JAVA_HOME/bin/java -classpath $FLINK_CLASSPATH -Xmx1073741824 -Xms1073741824 -XX:MaxMetaspaceSize=268435456 -Dlog.file=/opt/flink/log/jobmanager.log -Dlogback.configurationFile=file:/opt/flink/conf/logback-console.xml -Dlog4j.configuration=file:/opt/flink/conf/log4j-console.properties -Dlog4j.configurationFile=file:/opt/flink/conf/log4j-console.properties org.apache.flink.kubernetes.entrypoint.KubernetesSessionClusterEntrypoint -D jobmanager.memory.off-heap.size=134217728b -D jobmanager.memory.jvm-overhead.min=201326592b -D jobmanager.memory.jvm-metaspace.size=268435456b -D jobmanager.memory.heap.size=1073741824b -D jobmanager.memory.jvm-overhead.max=201326592b
> {code}
> But in the image fetched, there is no such command.
> {{}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)