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-3126][SPARK-3127][SQL] Fixed HiveThriftServer2Suite #2036

Closed
wants to merge 4 commits into from

Conversation

liancheng
Copy link
Contributor

This PR fixes two issues:

  1. Fixes wrongly quoted command line option in HiveThriftServer2Suite that makes test cases hang until timeout.
  2. Asks dev/run-test to run Spark SQL tests when bin/spark-sql and/or sbin/start-thriftserver.sh are modified.

@SparkQA
Copy link

SparkQA commented Aug 19, 2014

QA tests have started for PR 2036 at commit 26b82a0.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 19, 2014

QA tests have finished for PR 2036 at commit 26b82a0.

  • This patch fails unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@marmbrus
Copy link
Contributor

This still appears to be failing on Jenkins. Any ideas?

@chutium
Copy link
Contributor

chutium commented Aug 19, 2014

hmm... jenkins is not working again?... https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18886/consoleFull

@marmbrus
Copy link
Contributor

@chutium, that link appears to be for a different PR (#2044), but yeah it looks like one of the workspaces did not get cleaned up

@liancheng
Copy link
Contributor Author

It's probably because of too small a timeout value in CliSuite.

@marmbrus
Copy link
Contributor

Actually I get the same error locally... I see this if I add more debug logging:

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
org.apache.spark.sql.execution.QueryExecutionException: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
    at org.apache.spark.sql.hive.HiveContext.runHive(HiveContext.scala:301)
    at org.apache.spark.sql.hive.HiveContext.runSqlHive(HiveContext.scala:271)
    at org.apache.spark.sql.hive.execution.NativeCommand.sideEffectResult$lzycompute(NativeCommand.scala:35)
    at org.apache.spark.sql.hive.execution.NativeCommand.sideEffectResult(NativeCommand.scala:35)
    at org.apache.spark.sql.hive.execution.NativeCommand.execute(NativeCommand.scala:38)
    at org.apache.spark.sql.hive.HiveContext$QueryExecution.toRdd$lzycompute(HiveContext.scala:359)
    at org.apache.spark.sql.hive.HiveContext$QueryExecution.toRdd(HiveContext.scala:359)
    at org.apache.spark.sql.SchemaRDDLike$class.$init$(SchemaRDDLike.scala:58)
    at org.apache.spark.sql.SchemaRDD.<init>(SchemaRDD.scala:103)
    at org.apache.spark.sql.hive.HiveContext.sql(HiveContext.scala:98)
    at org.apache.spark.sql.hive.thriftserver.SparkSQLDriver.run(SparkSQLDriver.scala:58)
    at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.processCmd(SparkSQLCLIDriver.scala:291)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
    at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver$.main(SparkSQLCLIDriver.scala:226)
    at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.main(SparkSQLCLIDriver.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:314)
    at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:73)
    at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

Are you gonna have time to work on this soon or are you traveling? I might take a look.

@liancheng
Copy link
Contributor Author

I'm heading to the airport, should have a couple hours there but not guaranteed. So yes please have a look at it if you have time, thanks!

@liancheng
Copy link
Contributor Author

My fault, forgot to fix the same quotation issue in CliSuite. Let's see whether this one can be accepted by Jenkins.

@SparkQA
Copy link

SparkQA commented Aug 20, 2014

QA tests have started for PR 2036 at commit f38c4eb.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 20, 2014

QA tests have finished for PR 2036 at commit f38c4eb.

  • This patch fails unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@liancheng
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Aug 20, 2014

QA tests have started for PR 2036 at commit f38c4eb.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 20, 2014

QA tests have finished for PR 2036 at commit f38c4eb.

  • This patch fails unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@liancheng
Copy link
Contributor Author

Seems that some garbage files are left on Jenkins, causing build failures:

=========================================================================
Running Apache RAT checks
=========================================================================
Could not find Apache license headers in the following files:
 !????? /home/jenkins/workspace/SparkPullRequestBuilder/mllib/checkpoint/.temp.crc
 !????? /home/jenkins/workspace/SparkPullRequestBuilder/mllib/checkpoint/temp

@liancheng
Copy link
Contributor Author

Checked Jenkins, the workspace is clean now. Let's try again.

@liancheng
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Aug 20, 2014

QA tests have started for PR 2036 at commit f38c4eb.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 20, 2014

QA tests have finished for PR 2036 at commit f38c4eb.

  • This patch fails unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@liancheng
Copy link
Contributor Author

Hmm... The workspace is polluted again :(

@rxin
Copy link
Contributor

rxin commented Aug 20, 2014

Jenkins, retest this please.

@chenghao-intel
Copy link
Contributor

The unit test failure probably due to the assembly jar with duplicated netty jars (netty.3.2.2.Final.jar & netty.3.6.6.Final.jar, the class NioWorker with different method signatures), I've created another PR #2035 to fix this.

And of course the " should be removed as @liancheng did already.

@marmbrus
Copy link
Contributor

test this please

@SparkQA
Copy link

SparkQA commented Aug 20, 2014

QA tests have started for PR 2036 at commit f38c4eb.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 20, 2014

QA tests have finished for PR 2036 at commit f38c4eb.

  • This patch passes unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

if (VERBOSE && stderr.length > 0) {
println(stderr)
}
print(stdout)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to print this always? Perhaps we can just print when there is a failure like we do in HiveContext

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed this in #1856, which provides a faster and robuster version of these test suites, and is much more quiet when everything's OK. We can take care of that one later though.

@marmbrus
Copy link
Contributor

Yay! SQL tests are passing again! I'm going to merge this into master and 1.1.

@asfgit asfgit closed this in cf46e72 Aug 20, 2014
asfgit pushed a commit that referenced this pull request Aug 20, 2014
This PR fixes two issues:

1. Fixes wrongly quoted command line option in `HiveThriftServer2Suite` that makes test cases hang until timeout.
1. Asks `dev/run-test` to run Spark SQL tests when `bin/spark-sql` and/or `sbin/start-thriftserver.sh` are modified.

Author: Cheng Lian <[email protected]>

Closes #2036 from liancheng/fix-thriftserver-test and squashes the following commits:

f38c4eb [Cheng Lian] Fixed the same quotation issue in CliSuite
26b82a0 [Cheng Lian] Run SQL tests when dff contains bin/spark-sql and/or sbin/start-thriftserver.sh
a87f83d [Cheng Lian] Extended timeout
e5aa31a [Cheng Lian] Fixed metastore JDBC URI quotation

(cherry picked from commit cf46e72)
Signed-off-by: Michael Armbrust <[email protected]>
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
This PR fixes two issues:

1. Fixes wrongly quoted command line option in `HiveThriftServer2Suite` that makes test cases hang until timeout.
1. Asks `dev/run-test` to run Spark SQL tests when `bin/spark-sql` and/or `sbin/start-thriftserver.sh` are modified.

Author: Cheng Lian <[email protected]>

Closes apache#2036 from liancheng/fix-thriftserver-test and squashes the following commits:

f38c4eb [Cheng Lian] Fixed the same quotation issue in CliSuite
26b82a0 [Cheng Lian] Run SQL tests when dff contains bin/spark-sql and/or sbin/start-thriftserver.sh
a87f83d [Cheng Lian] Extended timeout
e5aa31a [Cheng Lian] Fixed metastore JDBC URI quotation
@liancheng liancheng deleted the fix-thriftserver-test branch September 24, 2014 00:06
szehon-ho pushed a commit to szehon-ho/spark that referenced this pull request Sep 24, 2024
… expression (apache#2036)

* fix: Avoid redundant array transform

* add test

* More

---------

Co-authored-by: Liang-Chi Hsieh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants