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

ASF GitHub Bot commented on FLINK-10341:
----------------------------------------

zjffdu closed pull request #6690: [FLINK-10341][shell script] Add option to 
print flink command when running bin/flink
URL: https://github.com/apache/flink/pull/6690
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/flink-dist/src/main/flink-bin/bin/flink 
b/flink-dist/src/main/flink-bin/bin/flink
index d38217deb9f..fb759ce8e80 100644
--- a/flink-dist/src/main/flink-bin/bin/flink
+++ b/flink-dist/src/main/flink-bin/bin/flink
@@ -52,4 +52,10 @@ export FLINK_ROOT_DIR
 export FLINK_CONF_DIR
 
 # Add HADOOP_CLASSPATH to allow the usage of Hadoop file systems
-exec $JAVA_RUN $JVM_ARGS "${log_setting[@]}" -classpath "`manglePathList 
"$CC_CLASSPATH:$INTERNAL_HADOOP_CLASSPATHS"`" 
org.apache.flink.client.cli.CliFrontend "$@"
+FLINK_COMMAND="$JAVA_RUN $JVM_ARGS "${log_setting[@]}" -classpath 
"`manglePathList "$CC_CLASSPATH:$INTERNAL_HADOOP_CLASSPATHS"`" 
org.apache.flink.client.cli.CliFrontend "$@""
+
+if [[ -n "${PRINT_FLINK_COMMAND}" ]]; then
+  echo "FLINK_COMMAND:${FLINK_COMMAND}"
+fi
+
+exec ${FLINK_COMMAND}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Add option to print flink command when running bin/flink
> --------------------------------------------------------
>
>                 Key: FLINK-10341
>                 URL: https://issues.apache.org/jira/browse/FLINK-10341
>             Project: Flink
>          Issue Type: Improvement
>          Components: Startup Shell Scripts
>            Reporter: Jeff Zhang
>            Assignee: Jeff Zhang
>            Priority: Major
>              Labels: pull-request-available
>
> It would be very useful if I can see the final java command which is used to 
> run flink program, specially when I hit very weird issue as flink 
> contributor. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to