[ https://issues.apache.org/jira/browse/FLINK-15682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17019861#comment-17019861 ]
yuzhaojing commented on FLINK-15682: ------------------------------------ These are my execution steps: ./bin/kubernetes-session.sh \ -Dtaskmanager.memory.process.size=4096m \ -Dkubernetes.taskmanager.cpu=2 \ -Dtaskmanager.numberOfTaskSlots=4 \ -Dkubernetes.container.image=***/flink:1.10 \ -Dkubernetes.container.image.pull-policy=Always \ -Dkubernetes.jobmanager.service-account=spark \ -Djobmanager.heap.size=2048m \ -Dkubernetes.jobmanager.cpu=2 pod yaml command and args is: spec: containers: - args: - /bin/bash - -c - ${JAVA_HOME}/bin/java -classpath ${FLINK_CLASSPATH} -Xms1448m -Xmx1448m -Dlog.file=/opt/flink/log/jobmanager.log -Dlogback.configurationFile=file:/opt/flink/conf/logback.xml -Dlog4j.configuration=file:/opt/flink/conf/log4j.properties org.apache.flink.kubernetes.entrypoint.KubernetesSessionClusterEntrypoint 1> /opt/flink/log/jobmanager.out 2> /opt/flink/log/jobmanager.err command: - /opt/flink/bin/kubernetes-entry.sh and logs is: Start command : /bin/bash -c ${JAVA_HOME}/bin/java -classpath ${FLINK_CLASSPATH} -Xms1448m -Xmx1448m -Dlog.file=/opt/flink/log/jobmanager.log -Dlogback.configurationFile=file:/opt/flink/conf/logback.xml -Dlog4j.configuration=file:/opt/flink/conf/log4j.properties org.apache.flink.kubernetes.entrypoint.KubernetesSessionClusterEntrypointStart command : /bin/bash -c ${JAVA_HOME}/bin/java -classpath ${FLINK_CLASSPATH} -Xms1448m -Xmx1448m -Dlog.file=/opt/flink/log/jobmanager.log -Dlogback.configurationFile=file:/opt/flink/conf/logback.xml -Dlog4j.configuration=file:/opt/flink/conf/log4j.properties org.apache.flink.kubernetes.entrypoint.KubernetesSessionClusterEntrypointUsage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file)where options include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "server" VM The default VM is server, because you are running on a server-class machine. -cp <class search path of directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A : separated list of directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property -verbose:[class|gc|jni] enable verbose output -version print product version and exit -version:<value> Warning: this feature is deprecated and will be removed in a future release. require the specified version to run -showversion print product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message -X print help on non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity -da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument -splash:<imagepath> show splash screen with specified imageSee http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details. > Flink native kubernetes Could not run > ------------------------------------- > > Key: FLINK-15682 > URL: https://issues.apache.org/jira/browse/FLINK-15682 > Project: Flink > Issue Type: Bug > Components: Deployment / Kubernetes > Reporter: yuzhaojing > Priority: Blocker > Labels: pull-request-available > Fix For: 1.10.0 > > Attachments: image-2020-01-21-10-37-42-248.png, > image-2020-01-21-13-29-18-903.png, image-2020-01-21-13-30-59-731.png > > Time Spent: 10m > Remaining Estimate: 0h > > Currently,native kubernetes use exec /bin/bash -c java_command to start > jobmanager and taskmanager.but there are $Flink_ClassPath in > java_command,when use exec $@,this env can't be parse. -- This message was sent by Atlassian Jira (v8.3.4#803005)