Skip to content

Commit

Permalink
Adapts test suites to spark-submit settings
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Jul 24, 2014
1 parent 40bafef commit 7755062
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ metastore_db/
metastore/
warehouse/
TempStatsStore/
sql/hive-thriftserver/test_warehouses
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ class CliSuite extends FunSuite with BeforeAndAfterAll with TestUtils {
override def beforeAll() {
val pb = new ProcessBuilder(
"../../bin/spark-class",
"-Dspark.master=local",
SparkSQLCLIDriver.getClass.getCanonicalName.stripSuffix("$"),
"-hiveconf",
"--hiveconf",
s"javax.jdo.option.ConnectionURL=jdbc:derby:;databaseName=$METASTORE_PATH;create=true",
"-hiveconf",
"--hiveconf",
"hive.metastore.warehouse.dir=" + WAREHOUSE_PATH)

process = pb.start()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class HiveThriftServer2Suite extends FunSuite with BeforeAndAfterAll with TestUt
// hard to clean up Hive resources entirely, so we just start a new process and kill
// that process for cleanup.
val defaultArgs = Seq(
"../../sbin/start-thriftserver.sh",
"../../bin/spark-class",
"-Dspark.master=local",
HiveThriftServer2.getClass.getCanonicalName.stripSuffix("$"),
"--hiveconf",
"hive.root.logger=INFO,console",
Expand Down

0 comments on commit 7755062

Please sign in to comment.