[SPARK-30086][SQL][TESTS] Run HiveThriftServer2ListenerSuite on a dedicated JVM to fix flakiness
[SPARK-30086][SQL][TESTS] Run HiveThriftServer2ListenerSuite on a dedicated JVM to fix flakiness

### What changes were proposed in this pull request?

This PR tries to fix flakiness in `HiveThriftServer2ListenerSuite` by using a dedicated JVM (after we switch to Hive 2.3 by default in PR builders). Likewise in https://github.com/apache/spark/commit/4a73bed3180aeb79c92bb19aea2ac5a97899731a, there's no explicit evidence for this fix.

See https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/114653/testReport/org.apache.spark.sql.hive.thriftserver.ui/HiveThriftServer2ListenerSuite/_It_is_not_a_test_it_is_a_sbt_testing_SuiteSelector_/

```
sbt.ForkMain$ForkError: sbt.ForkMain$ForkError: java.lang.LinkageError: loader constraint violation: loader (instance of net/bytebuddy/dynamic/loading/MultipleParentClassLoader) previously initiated loading for a different type with name "org/apache/hive/service/ServiceStateChangeListener"
	at org.mockito.codegen.HiveThriftServer2$MockitoMock$1974707245.<clinit>(Unknown Source)
	at sun.reflect.GeneratedSerializationConstructorAccessor164.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.newInstance(SunReflectionFactoryInstantiator.java:48)
	at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
	at org.mockito.internal.creation.instance.ObjenesisInstantiator.newInstance(ObjenesisInstantiator.java:19)
	at org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker.createMock(SubclassByteBuddyMockMaker.java:47)
	at org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker.createMock(ByteBuddyMockMaker.java:25)
	at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:35)
	at org.mockito.internal.MockitoCore.mock(MockitoCore.java:62)
	at org.mockito.Mockito.mock(Mockito.java:1908)
	at org.mockito.Mockito.mock(Mockito.java:1880)
	at org.apache.spark.sql.hive.thriftserver.ui.HiveThriftServer2ListenerSuite.createAppStatusStore(HiveThriftServer2ListenerSuite.scala:156)
	at org.apache.spark.sql.hive.thriftserver.ui.HiveThriftServer2ListenerSuite.$anonfun$new$3(HiveThriftServer2ListenerSuite.scala:47)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:20)
```

### Why are the changes needed?

To make test cases more robust.

### Does this PR introduce any user-facing change?

No (dev only).

### How was this patch tested?

Jenkins build.

Closes #26720 from shahidki31/mock.

Authored-by: shahid <070b5ca21fe5eb8476ce952ff6038906d630039b@gmail.com>
Signed-off-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

rednaxelafx/apache-spark,apache/spark,jiangxb1987/spark,holdenk/spark,holdenk/spark,mahak/spark,kevinyu98/spark,maropu/spark,cloud-fan/spark,dongjoon-hyun/spark,shaneknapp/spark,ConeyLiu/spark,taroplus/spark,nchammas/spark,cloud-fan/spark,BryanCutler/spark,srowen/spark,spark-test/spark,apache/spark,ConeyLiu/spark,wangmiao1981/spark,goldmedal/spark,ptkool/spark,dbtsai/spark,jiangxb1987/spark,maropu/spark,BryanCutler/spark,nchammas/spark,gengliangwang/spark,dbtsai/spark,goldmedal/spark,milliman/spark,holdenk/spark,jiangxb1987/spark,skonto/spark,vinodkc/spark,skonto/spark,kevinyu98/spark,zuotingbing/spark,dbtsai/spark,xuanyuanking/spark,jkbradley/spark,hvanhovell/spark,holdenk/spark,hvanhovell/spark,zzcclp/spark,gengliangwang/spark,rednaxelafx/apache-spark,jiangxb1987/spark,dbtsai/spark,chuckchen/spark,JoshRosen/spark,ConeyLiu/spark,darionyaphet/spark,xuanyuanking/spark,HyukjinKwon/spark,gengliangwang/spark,apache/spark,holdenk/spark,skonto/spark,milliman/spark,shaneknapp/spark,zero323/spark,HyukjinKwon/spark,dongjoon-hyun/spark,hvanhovell/spark,wangmiao1981/spark,hvanhovell/spark,skonto/spark,mahak/spark,WeichenXu123/spark,HyukjinKwon/spark,zero323/spark,BryanCutler/spark,srowen/spark,apache/spark,taroplus/spark,wangmiao1981/spark,ueshin/apache-spark,mahak/spark,witgo/spark,ueshin/apache-spark,chuckchen/spark,zzcclp/spark,gengliangwang/spark,zuotingbing/spark,zuotingbing/spark,WeichenXu123/spark,BryanCutler/spark,ptkool/spark,JoshRosen/spark,taroplus/spark,wangyum/spark,mahak/spark,milliman/spark,JoshRosen/spark,dongjoon-hyun/spark,wangyum/spark,nchammas/spark,goldmedal/spark,maropu/spark,HyukjinKwon/spark,wzhfy/spark,WeichenXu123/spark,skonto/spark,ptkool/spark,milliman/spark,cloud-fan/spark,spark-test/spark,dongjoon-hyun/spark,holdenk/spark,jkbradley/spark,rednaxelafx/apache-spark,BryanCutler/spark,spark-test/spark,gengliangwang/spark,milliman/spark,jiangxb1987/spark,rednaxelafx/apache-spark,vinodkc/spark,jiangxb1987/spark,dbtsai/spark,xuanyuanking/spark,WeichenXu123/spark,witgo/spark,srowen/spark,kevinyu98/spark,xuanyuanking/spark,shuangshuangwang/spark,JoshRosen/spark,shuangshuangwang/spark,wzhfy/spark,jkbradley/spark,chuckchen/spark,ptkool/spark,JoshRosen/spark,maropu/spark,WeichenXu123/spark,dongjoon-hyun/spark,ueshin/apache-spark,shuangshuangwang/spark,shaneknapp/spark,wzhfy/spark,WeichenXu123/spark,jiangxb1987/spark,wangyum/spark,taroplus/spark,matthewfranglen/spark,hvanhovell/spark,srowen/spark,kevinyu98/spark,hvanhovell/spark,jkbradley/spark,dbtsai/spark,wzhfy/spark,zero323/spark,rednaxelafx/apache-spark,skonto/spark,darionyaphet/spark,kevinyu98/spark,chuckchen/spark,cloud-fan/spark,vinodkc/spark,cloud-fan/spark,wangyum/spark,zuotingbing/spark,BryanCutler/spark,apache/spark,wangmiao1981/spark,srowen/spark,holdenk/spark,vinodkc/spark,ConeyLiu/spark,shaneknapp/spark,mahak/spark,ptkool/spark,xuanyuanking/spark,zzcclp/spark,darionyaphet/spark,shaneknapp/spark,darionyaphet/spark,zzcclp/spark,taroplus/spark,witgo/spark,zero323/spark,wzhfy/spark,shuangshuangwang/spark,spark-test/spark,wangmiao1981/spark,chuckchen/spark,zuotingbing/spark,chuckchen/spark,vinodkc/spark,zuotingbing/spark,goldmedal/spark,spark-test/spark,rednaxelafx/apache-spark,gengliangwang/spark,cloud-fan/spark,srowen/spark,vinodkc/spark,witgo/spark,gengliangwang/spark,wangmiao1981/spark,goldmedal/spark,skonto/spark,dbtsai/spark,HyukjinKwon/spark,shaneknapp/spark,jkbradley/spark,shaneknapp/spark,vinodkc/spark,apache/spark,taroplus/spark,witgo/spark,wangmiao1981/spark,darionyaphet/spark,maropu/spark,JoshRosen/spark,spark-test/spark,wzhfy/spark,mahak/spark,ueshin/apache-spark,jkbradley/spark,nchammas/spark,hvanhovell/spark,ptkool/spark,zzcclp/spark,zuotingbing/spark,goldmedal/spark,srowen/spark,jkbradley/spark,cloud-fan/spark,witgo/spark,zero323/spark,shuangshuangwang/spark,zero323/spark,rednaxelafx/apache-spark,mahak/spark,xuanyuanking/spark,ConeyLiu/spark,nchammas/spark,ptkool/spark,xuanyuanking/spark,chuckchen/spark,wangyum/spark,kevinyu98/spark,zzcclp/spark,milliman/spark,spark-test/spark,darionyaphet/spark,JoshRosen/spark,zero323/spark,goldmedal/spark,witgo/spark,shuangshuangwang/spark,dongjoon-hyun/spark,wzhfy/spark,HyukjinKwon/spark,nchammas/spark,wangyum/spark,zzcclp/spark,shuangshuangwang/spark,kevinyu98/spark,dongjoon-hyun/spark,ueshin/apache-spark,BryanCutler/spark,darionyaphet/spark,taroplus/spark,ueshin/apache-spark,maropu/spark,milliman/spark,maropu/spark,ConeyLiu/spark,HyukjinKwon/spark,nchammas/spark,wangyum/spark,ConeyLiu/spark,apache/spark,WeichenXu123/spark,ueshin/apache-spark