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

Mahesh edited comment on SPARK-21399 at 7/14/17 6:25 AM:
---------------------------------------------------------

Closing the issue based on response from Marcelo.

--Edit--
I did the get the problem eventually, the jdk I use returns 1 even upon 
successful launch, which will cause spark-class to terminate the run. 

Thanks for everyone's time.


was (Author: maheshs):
Closing the issue based on response from Marcelo.

> Difficult to debug code in spark-class
> --------------------------------------
>
>                 Key: SPARK-21399
>                 URL: https://issues.apache.org/jira/browse/SPARK-21399
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Shell, Spark Submit
>    Affects Versions: 2.1.1
>         Environment: Running spark on a version of hottub.
>            Reporter: Mahesh
>            Priority: Minor
>
> The code below is difficult to debug, and its not clear what is happening, it 
> appears to use some kind of shell magic, if possible it should be replaced 
> with an easier to understand code. Specifically there needs to be a log of 
> the exact java command that is finally invoked. 
> Using input redirection means that adding comments to the build_command will 
> break the code ,I am not sure but the below code for build_command is not 
> equivalent to one in the code, although semantically it should be.
> build_command() {
>   "$RUNNER" -Xmx128m -cp "$LAUNCH_CLASSPATH" org.apache.spark.launcher.Main 
> "$@"
>   printf "%d\0" $?
>   #printf "Something\0"
> }
> *Original code below*
> *build_command() {
>   "$RUNNER" -Xmx128m -cp "$LAUNCH_CLASSPATH" org.apache.spark.launcher.Main 
> "$@"
>   printf "%d\0" $?
> }
> CMD=()
> while IFS= read -d '' -r ARG; do
>   CMD+=("$ARG")
> done < <(build_command "$@")*



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to