@@ -59,11 +59,6 @@ class HiveExternalCatalogVersionsSuite extends SparkSubmitTestUtils {
59
59
private val sparkTestingDir = Option (System .getProperty(SPARK_TEST_CACHE_DIR_SYSTEM_PROPERTY ))
60
60
.map(new File (_)).getOrElse(Utils .createTempDir(namePrefix = " test-spark" ))
61
61
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
- }
67
62
68
63
override def afterAll (): Unit = {
69
64
try {
@@ -205,11 +200,12 @@ class HiveExternalCatalogVersionsSuite extends SparkSubmitTestUtils {
205
200
" --master" , " local[2]" ,
206
201
" --conf" , s " ${UI_ENABLED .key}=false " ,
207
202
" --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 " ,
209
204
" --conf" , s " ${HiveUtils .HIVE_METASTORE_JARS .key}=maven " ,
210
205
" --conf" , s " ${WAREHOUSE_PATH .key}= ${wareHousePath.getCanonicalPath}" ,
211
206
" --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 " ,
213
209
tempPyFile.getCanonicalPath)
214
210
runSparkSubmit(args, Some (sparkHome.getCanonicalPath), false )
215
211
}
@@ -224,7 +220,7 @@ class HiveExternalCatalogVersionsSuite extends SparkSubmitTestUtils {
224
220
" --master" , " local[2]" ,
225
221
" --conf" , s " ${UI_ENABLED .key}=false " ,
226
222
" --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 " ,
228
224
" --conf" , s " ${HiveUtils .HIVE_METASTORE_JARS .key}=maven " ,
229
225
" --conf" , s " ${WAREHOUSE_PATH .key}= ${wareHousePath.getCanonicalPath}" ,
230
226
" --driver-java-options" , s " -Dderby.system.home= ${wareHousePath.getCanonicalPath}" ,
0 commit comments