[SPARK-33179][TESTS] Switch default Hadoop profile in run-tests.py
[SPARK-33179][TESTS] Switch default Hadoop profile in run-tests.py

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

This PR aims to switch the default Hadoop profile from `hadoop2.7` to `hadoop3.2` in `dev/run-tests.py` when it's running in local or GitHub Action environments.

### Why are the changes needed?

The default Hadoop version is 3.2. We had better be consistent.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Manually.

**BEFORE**
```
% dev/run-tests.py
Cannot install SparkR as R was not found in PATH
[info] Using build tool sbt with Hadoop profile hadoop2.7 and Hive profile hive2.3 under environment local
```

**AFTER**
```
% dev/run-tests.py
Cannot install SparkR as R was not found in PATH
[info] Using build tool sbt with Hadoop profile hadoop3.2 and Hive profile hive2.3 under environment local
```

Closes #30090 from williamhyun/SPARK-33179.

Authored-by: William Hyun <0d6b2a6cdba65a96cdc8b26488f0cf089fe427cf@gmail.com>
Signed-off-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

mahak/spark,wangmiao1981/spark,holdenk/spark,maropu/spark,shaneknapp/spark,vinodkc/spark,hvanhovell/spark,maropu/spark,WeichenXu123/spark,zero323/spark,JoshRosen/spark,maropu/spark,zzcclp/spark,rednaxelafx/apache-spark,gengliangwang/spark,ueshin/apache-spark,apache/spark,hvanhovell/spark,mahak/spark,cloud-fan/spark,cloud-fan/spark,witgo/spark,vinodkc/spark,srowen/spark,apache/spark,cloud-fan/spark,dongjoon-hyun/spark,taroplus/spark,WeichenXu123/spark,BryanCutler/spark,holdenk/spark,cloud-fan/spark,wangyum/spark,mahak/spark,chuckchen/spark,WeichenXu123/spark,jiangxb1987/spark,wangyum/spark,dongjoon-hyun/spark,wangmiao1981/spark,zzcclp/spark,xuanyuanking/spark,rednaxelafx/apache-spark,taroplus/spark,shaneknapp/spark,zero323/spark,shuangshuangwang/spark,BryanCutler/spark,witgo/spark,chuckchen/spark,BryanCutler/spark,jiangxb1987/spark,chuckchen/spark,taroplus/spark,witgo/spark,srowen/spark,milliman/spark,gengliangwang/spark,JoshRosen/spark,wangmiao1981/spark,xuanyuanking/spark,apache/spark,nchammas/spark,zero323/spark,srowen/spark,shaneknapp/spark,apache/spark,shuangshuangwang/spark,JoshRosen/spark,JoshRosen/spark,gengliangwang/spark,maropu/spark,milliman/spark,jiangxb1987/spark,milliman/spark,holdenk/spark,zzcclp/spark,JoshRosen/spark,jiangxb1987/spark,milliman/spark,wangyum/spark,rednaxelafx/apache-spark,hvanhovell/spark,HyukjinKwon/spark,HyukjinKwon/spark,gengliangwang/spark,mahak/spark,maropu/spark,milliman/spark,holdenk/spark,jiangxb1987/spark,witgo/spark,shaneknapp/spark,milliman/spark,gengliangwang/spark,hvanhovell/spark,taroplus/spark,rednaxelafx/apache-spark,apache/spark,wangmiao1981/spark,ueshin/apache-spark,WeichenXu123/spark,witgo/spark,rednaxelafx/apache-spark,xuanyuanking/spark,zzcclp/spark,xuanyuanking/spark,taroplus/spark,rednaxelafx/apache-spark,zero323/spark,WeichenXu123/spark,srowen/spark,wangyum/spark,holdenk/spark,ueshin/apache-spark,dongjoon-hyun/spark,nchammas/spark,zero323/spark,nchammas/spark,HyukjinKwon/spark,BryanCutler/spark,cloud-fan/spark,srowen/spark,BryanCutler/spark,zzcclp/spark,milliman/spark,nchammas/spark,witgo/spark,taroplus/spark,cloud-fan/spark,WeichenXu123/spark,shuangshuangwang/spark,zzcclp/spark,dongjoon-hyun/spark,hvanhovell/spark,shuangshuangwang/spark,wangyum/spark,ueshin/apache-spark,maropu/spark,HyukjinKwon/spark,wangmiao1981/spark,shaneknapp/spark,jiangxb1987/spark,vinodkc/spark,wangyum/spark,wangmiao1981/spark,shuangshuangwang/spark,WeichenXu123/spark,nchammas/spark,HyukjinKwon/spark,taroplus/spark,ueshin/apache-spark,mahak/spark,xuanyuanking/spark,shaneknapp/spark,mahak/spark,ueshin/apache-spark,JoshRosen/spark,jiangxb1987/spark,shuangshuangwang/spark,wangyum/spark,dongjoon-hyun/spark,shuangshuangwang/spark,HyukjinKwon/spark,zero323/spark,srowen/spark,chuckchen/spark,zzcclp/spark,xuanyuanking/spark,vinodkc/spark,nchammas/spark,maropu/spark,hvanhovell/spark,holdenk/spark,gengliangwang/spark,vinodkc/spark,BryanCutler/spark,wangmiao1981/spark,shaneknapp/spark,hvanhovell/spark,chuckchen/spark,BryanCutler/spark,cloud-fan/spark,chuckchen/spark,witgo/spark,srowen/spark,mahak/spark,HyukjinKwon/spark,JoshRosen/spark,zero323/spark,xuanyuanking/spark,vinodkc/spark,gengliangwang/spark,rednaxelafx/apache-spark,vinodkc/spark,apache/spark,chuckchen/spark,dongjoon-hyun/spark,dongjoon-hyun/spark,ueshin/apache-spark,holdenk/spark,nchammas/spark,apache/spark