Skip to content

Commit d6f957c

Browse files
committed
test for change ivy path
1 parent 4390fca commit d6f957c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogVersionsSuite.scala

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ class HiveExternalCatalogVersionsSuite extends SparkSubmitTestUtils {
5959
private val sparkTestingDir = Option(System.getProperty(SPARK_TEST_CACHE_DIR_SYSTEM_PROPERTY))
6060
.map(new File(_)).getOrElse(Utils.createTempDir(namePrefix = "test-spark"))
6161
private val unusedJar = TestUtils.createJarWithClasses(Seq.empty)
62-
val hiveVersion = if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_9)) {
63-
"2.3.7"
64-
} else {
65-
"1.2.1"
66-
}
6762

6863
override def afterAll(): Unit = {
6964
try {
@@ -205,11 +200,12 @@ class HiveExternalCatalogVersionsSuite extends SparkSubmitTestUtils {
205200
"--master", "local[2]",
206201
"--conf", s"${UI_ENABLED.key}=false",
207202
"--conf", s"${MASTER_REST_SERVER_ENABLED.key}=false",
208-
"--conf", s"${HiveUtils.HIVE_METASTORE_VERSION.key}=$hiveVersion",
203+
"--conf", s"${HiveUtils.HIVE_METASTORE_VERSION.key}=2.3.7",
209204
"--conf", s"${HiveUtils.HIVE_METASTORE_JARS.key}=maven",
210205
"--conf", s"${WAREHOUSE_PATH.key}=${wareHousePath.getCanonicalPath}",
211206
"--conf", s"spark.sql.test.version.index=$index",
212-
"--driver-java-options", s"-Dderby.system.home=${wareHousePath.getCanonicalPath}",
207+
"--driver-java-options", s"-Dderby.system.home=${wareHousePath.getCanonicalPath}" +
208+
s" -Duser.home=/home/runner/for-test",
213209
tempPyFile.getCanonicalPath)
214210
runSparkSubmit(args, Some(sparkHome.getCanonicalPath), false)
215211
}
@@ -224,7 +220,7 @@ class HiveExternalCatalogVersionsSuite extends SparkSubmitTestUtils {
224220
"--master", "local[2]",
225221
"--conf", s"${UI_ENABLED.key}=false",
226222
"--conf", s"${MASTER_REST_SERVER_ENABLED.key}=false",
227-
"--conf", s"${HiveUtils.HIVE_METASTORE_VERSION.key}=$hiveVersion",
223+
"--conf", s"${HiveUtils.HIVE_METASTORE_VERSION.key}=2.3.7",
228224
"--conf", s"${HiveUtils.HIVE_METASTORE_JARS.key}=maven",
229225
"--conf", s"${WAREHOUSE_PATH.key}=${wareHousePath.getCanonicalPath}",
230226
"--driver-java-options", s"-Dderby.system.home=${wareHousePath.getCanonicalPath}",

0 commit comments

Comments
 (0)