Skip to content

Commit 7755062

Browse files
committed
Adapts test suites to spark-submit settings
1 parent 40bafef commit 7755062

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ metastore_db/
5757
metastore/
5858
warehouse/
5959
TempStatsStore/
60+
sql/hive-thriftserver/test_warehouses

sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ class CliSuite extends FunSuite with BeforeAndAfterAll with TestUtils {
3131
override def beforeAll() {
3232
val pb = new ProcessBuilder(
3333
"../../bin/spark-class",
34+
"-Dspark.master=local",
3435
SparkSQLCLIDriver.getClass.getCanonicalName.stripSuffix("$"),
35-
"-hiveconf",
36+
"--hiveconf",
3637
s"javax.jdo.option.ConnectionURL=jdbc:derby:;databaseName=$METASTORE_PATH;create=true",
37-
"-hiveconf",
38+
"--hiveconf",
3839
"hive.metastore.warehouse.dir=" + WAREHOUSE_PATH)
3940

4041
process = pb.start()

sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class HiveThriftServer2Suite extends FunSuite with BeforeAndAfterAll with TestUt
5858
// hard to clean up Hive resources entirely, so we just start a new process and kill
5959
// that process for cleanup.
6060
val defaultArgs = Seq(
61-
"../../sbin/start-thriftserver.sh",
61+
"../../bin/spark-class",
62+
"-Dspark.master=local",
6263
HiveThriftServer2.getClass.getCanonicalName.stripSuffix("$"),
6364
"--hiveconf",
6465
"hive.root.logger=INFO,console",

0 commit comments

Comments
 (0)