From 9dc00eb5a0ba5d64fb2f57e995bed1d3715cb5ff Mon Sep 17 00:00:00 2001 From: Kengo Seki Date: Thu, 24 Sep 2020 19:11:20 +0900 Subject: [PATCH] BIGTOP-3415. Extend timeout for Spark smoke test. --- bigtop-tests/smoke-tests/spark/TestSpark.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigtop-tests/smoke-tests/spark/TestSpark.groovy b/bigtop-tests/smoke-tests/spark/TestSpark.groovy index a0e7a4096..c2327ceaf 100644 --- a/bigtop-tests/smoke-tests/spark/TestSpark.groovy +++ b/bigtop-tests/smoke-tests/spark/TestSpark.groovy @@ -83,7 +83,7 @@ class TestSpark { final String SPARK_SHELL = SPARK_HOME + "/bin/spark-shell --master $masterMode" // Let's use time, 'cause the test has one job - sh.exec("timeout 120 " + SPARK_SHELL + + sh.exec("timeout 300 " + SPARK_SHELL + " --class org.apache.spark.examples.sql.JavaSparkSQLExample " + " --jars " + SPARK_HOME + "/examples/jars/spark-examples*.jar > " + TEST_SPARKSQL_LOG + " 2>&1") @@ -108,7 +108,7 @@ class TestSpark { } final String SPARK_SUBMIT = SPARK_HOME + "/bin/spark-submit --master $masterMode" - sh.exec("timeout 120 " + SPARK_SUBMIT + " /tmp/dataframe.R > " + TEST_SPARKR_LOG + " 2>&1") + sh.exec("timeout 300 " + SPARK_SUBMIT + " /tmp/dataframe.R > " + TEST_SPARKR_LOG + " 2>&1") logError(sh) assertTrue("Failed to execute SparkR script", sh.getRet() == 0); }