Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-2970] [SQL] spark-sql script ends with IOException when EventLogging is enabled #1891

Closed
wants to merge 3 commits into from

Conversation

sarutak
Copy link
Member

@sarutak sarutak commented Aug 11, 2014

No description provided.

@SparkQA
Copy link

SparkQA commented Aug 11, 2014

QA tests have started for PR 1891. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18308/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 11, 2014

QA results for PR 1891:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18308/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 11, 2014

QA tests have started for PR 1891. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18309/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 11, 2014

QA results for PR 1891:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18309/consoleFull

@liancheng
Copy link
Contributor

LGTM, thanks!

@@ -116,13 +118,17 @@ private[hive] object SparkSQLCLIDriver {
SessionState.start(sessionState)

// Clean up after we exit
Runtime.getRuntime.addShutdownHook(
/**
This should be executed before shutdown hook of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit: this line is missing a * before "This"

@SparkQA
Copy link

SparkQA commented Aug 11, 2014

QA tests have started for PR 1891. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18315/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 11, 2014

QA results for PR 1891:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18315/consoleFull

@liancheng
Copy link
Contributor

Jenkins, retest this please.

@liancheng
Copy link
Contributor

Embarrassing... I don't know why Jenkins doesn't respond me, he used to :(

@andrewor14
Copy link
Contributor

test this please, let's see if he likes me :)

@SparkQA
Copy link

SparkQA commented Aug 12, 2014

QA tests have started for PR 1891. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18360/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 12, 2014

QA results for PR 1891:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18360/consoleFull

@liancheng
Copy link
Contributor

The build failure was caused by PySpark. (Let me try again...)

@liancheng
Copy link
Contributor

test this please

@SparkQA
Copy link

SparkQA commented Aug 12, 2014

QA tests have started for PR 1891. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18365/consoleFull

@sarutak
Copy link
Member Author

sarutak commented Aug 12, 2014

Thanks a lot for triggering test...

@SparkQA
Copy link

SparkQA commented Aug 12, 2014

QA results for PR 1891:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18365/consoleFull

@sarutak
Copy link
Member Author

sarutak commented Aug 12, 2014

Ah... It's strange. I think there are no test using SparkSQLCLIDriver right?

@liancheng
Copy link
Contributor

Build failure was caused by PySpark again :(

@liancheng
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Aug 13, 2014

QA tests have started for PR 1891. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18437/consoleFull

@liancheng
Copy link
Contributor

Oh, actually the build failure was caused by a Spark SQL Python API test case. It seems that we are comparing floating point numbers directly:

Expected:
    [Row(byte1=126, byte2=-127, short1=-32767, short2=32766, int=2147483646, float=2.1)]
Got:
    [Row(byte1=126, byte2=-127, short1=-32767, short2=32766, int=2147483646, float=2.1000000000000001)]

This should be fixed... Sorry @sarutak, we'll come back to this PR later, thanks for the patience.

@SparkQA
Copy link

SparkQA commented Aug 13, 2014

QA results for PR 1891:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18437/consoleFull

@liancheng
Copy link
Contributor

@sarutak Just FYI, @yhuai is taking care of the floating-point issue. Jenkins was pretty crazy during the last 12 hours. We're trying to calm him down...

@marmbrus
Copy link
Contributor

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Aug 13, 2014

QA tests have started for PR 1891. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18482/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA results for PR 1891:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18482/consoleFull

@marmbrus
Copy link
Contributor

Thanks! I've merged this to master and 1.1

asfgit pushed a commit that referenced this pull request Aug 14, 2014
…ogging is enabled

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes #1891 from sarutak/SPARK-2970 and squashes the following commits:

4a2d2fe [Kousuke Saruta] Modified comment style
8bd833c [Kousuke Saruta] Modified style
6c0997c [Kousuke Saruta] Modified the timing of shutdown hook execution. It should be executed before shutdown hook of o.a.h.f.FileSystem

(cherry picked from commit 905dc4b)
Signed-off-by: Michael Armbrust <michael@databricks.com>
@asfgit asfgit closed this in 905dc4b Aug 14, 2014
@liancheng
Copy link
Contributor

Sorry, didn't realize that ShutdownHookManager is only available in Hadoop 2. Compilation fails when building Spark with Hadoop 1. Filed SPARK-3062 to track this issue.

@marmbrus Maybe we should revert this PR first for safe.

@sarutak
Copy link
Member Author

sarutak commented Aug 15, 2014

@liancheng @marmbrus So sorry for my fault.
Now I had a compromised solution on #1970.

asfgit pushed a commit that referenced this pull request Aug 18, 2014
…n EventLogging is enabled"

Revert #1891 due to issues with hadoop 1 compatibility.

Author: Michael Armbrust <michael@databricks.com>

Closes #2007 from marmbrus/revert1891 and squashes the following commits:

68706c0 [Michael Armbrust] Revert "[SPARK-2970] [SQL] spark-sql script ends with IOException when EventLogging is enabled"

(cherry picked from commit 5ecb08e)
Signed-off-by: Michael Armbrust <michael@databricks.com>
asfgit pushed a commit that referenced this pull request Aug 18, 2014
…n EventLogging is enabled"

Revert #1891 due to issues with hadoop 1 compatibility.

Author: Michael Armbrust <michael@databricks.com>

Closes #2007 from marmbrus/revert1891 and squashes the following commits:

68706c0 [Michael Armbrust] Revert "[SPARK-2970] [SQL] spark-sql script ends with IOException when EventLogging is enabled"
asfgit pushed a commit that referenced this pull request Aug 20, 2014
…n when EventLogging is enabled

#1891 was to avoid IOException when EventLogging is enabled.
The solution used ShutdownHookManager but it was defined only Hadoop 2.x. Hadoop 1.x don't have ShutdownHookManager so #1891 doesn't compile on Hadoop 1.x

Now, I had a compromised solution for both Hadoop 1.x and 2.x.
Only for FileLogger, an unique FileSystem object is created.

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes #1970 from sarutak/SPARK-2970 and squashes the following commits:

240c91e [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-2970
0e7b45d [Kousuke Saruta] Revert "[SPARK-2970] [SQL] spark-sql script ends with IOException when EventLogging is enabled"
e1262ec [Kousuke Saruta] Modified Filelogger to use unique FileSystem instance
asfgit pushed a commit that referenced this pull request Aug 20, 2014
…n when EventLogging is enabled

#1891 was to avoid IOException when EventLogging is enabled.
The solution used ShutdownHookManager but it was defined only Hadoop 2.x. Hadoop 1.x don't have ShutdownHookManager so #1891 doesn't compile on Hadoop 1.x

Now, I had a compromised solution for both Hadoop 1.x and 2.x.
Only for FileLogger, an unique FileSystem object is created.

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes #1970 from sarutak/SPARK-2970 and squashes the following commits:

240c91e [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-2970
0e7b45d [Kousuke Saruta] Revert "[SPARK-2970] [SQL] spark-sql script ends with IOException when EventLogging is enabled"
e1262ec [Kousuke Saruta] Modified Filelogger to use unique FileSystem instance
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
…ogging is enabled

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes apache#1891 from sarutak/SPARK-2970 and squashes the following commits:

4a2d2fe [Kousuke Saruta] Modified comment style
8bd833c [Kousuke Saruta] Modified style
6c0997c [Kousuke Saruta] Modified the timing of shutdown hook execution. It should be executed before shutdown hook of o.a.h.f.FileSystem
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
…n EventLogging is enabled"

Revert apache#1891 due to issues with hadoop 1 compatibility.

Author: Michael Armbrust <michael@databricks.com>

Closes apache#2007 from marmbrus/revert1891 and squashes the following commits:

68706c0 [Michael Armbrust] Revert "[SPARK-2970] [SQL] spark-sql script ends with IOException when EventLogging is enabled"
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
…n when EventLogging is enabled

apache#1891 was to avoid IOException when EventLogging is enabled.
The solution used ShutdownHookManager but it was defined only Hadoop 2.x. Hadoop 1.x don't have ShutdownHookManager so apache#1891 doesn't compile on Hadoop 1.x

Now, I had a compromised solution for both Hadoop 1.x and 2.x.
Only for FileLogger, an unique FileSystem object is created.

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes apache#1970 from sarutak/SPARK-2970 and squashes the following commits:

240c91e [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-2970
0e7b45d [Kousuke Saruta] Revert "[SPARK-2970] [SQL] spark-sql script ends with IOException when EventLogging is enabled"
e1262ec [Kousuke Saruta] Modified Filelogger to use unique FileSystem instance
szehon-ho pushed a commit to szehon-ho/spark that referenced this pull request Feb 7, 2024
https://github.pie.apple.com/IPR/apache-incubator-iceberg/compare/IPR:9a2d360...IPR:48834b0

Internal: Change Default Optimize Threshold 
Internal (Boson): Bump Boson version to 0.3.23 and remove the fallbac… 
Internal(Boson): Populate spark.boson.exceptionOnDatetimeRebase to Bo… 
Releases Apple Iceberg 1.3.0.5 (apache#1152)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants