spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Haberman (JIRA)" <>
Subject [jira] [Commented] (SPARK-4704) SparkSubmitDriverBootstrap doesn't flush output
Date Wed, 24 Dec 2014 02:43:13 GMT


Stephen Haberman commented on SPARK-4704:

That that PR 3655 is for a separate issue (it referenced this ticket as a typo).

> SparkSubmitDriverBootstrap doesn't flush output
> -----------------------------------------------
>                 Key: SPARK-4704
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>         Environment: 1.2.0-rc1
>            Reporter: Stephen Haberman
> When running spark-submit with a job that immediately blows up (say due to init errors
in the job code), there is no error output from spark-submit on the console.
> When I ran spark-class directly, then I do see the error/stack trace on the console.
> I believe the issue is in SparkSubmitDriverBootstrapper (I had spark.driver.memory set
in spark-defaults.conf) not waiting for the  RedirectThreads to flush/complete before exiting.
> E.g. here:
> I believe around line 165 or so, stdoutThread.join() and
> stderrThread.join() calls are necessary to make sure the other threads
> have had a chance to flush process.getInputStream/getErrorStream to
> System.out/err before the process exits.
> I've been tripped up by this in similar RedirectThread/process code, hence suspecting
this is the problem.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message