[SPARK-29739][PYSPARK][TESTS] Use `java` instead of `cc` in test_pipe_functions
[SPARK-29739][PYSPARK][TESTS] Use `java` instead of `cc` in test_pipe_functions

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

This PR aims to replace `cc` with `java` in `test_pipe_functions` of `test_rdd.py`.

### Why are the changes needed?

Currently, `test_rdd.py` assumes `cc` installation during `rdd.pipe` tests.
This requires us to install `gcc` for python testing. If we use `java`, we can have the same test coverage and we don't need to install it because it's already installed in `PySpark` test environment.

This will be helpful when we build a dockerized parallel testing environment.

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

No.

### How was this patch tested?

Pass the existing PySpark tests.

Closes #26383 from dongjoon-hyun/SPARK-29739.

Authored-by: Dongjoon Hyun <9b02cb7e37158797a8e22c559f7c5f5ecd28ea57@apple.com>
Signed-off-by: Dongjoon Hyun <9b02cb7e37158797a8e22c559f7c5f5ecd28ea57@apple.com>

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