[SPARK-22813][BUILD] Use lsof or /usr/sbin/lsof in run-tests.py
[SPARK-22813][BUILD] Use lsof or /usr/sbin/lsof in run-tests.py

## What changes were proposed in this pull request?

In [the environment where `/usr/sbin/lsof` does not exist](https://github.com/apache/spark/pull/19695#issuecomment-342865001), `./dev/run-tests.py` for `maven` causes the following error. This is because the current `./dev/run-tests.py` checks existence of only `/usr/sbin/lsof` and aborts immediately if it does not exist.

This PR changes to check whether `lsof` or `/usr/sbin/lsof` exists.

```
/bin/sh: 1: /usr/sbin/lsof: not found

Usage:
 kill [options] <pid> [...]

Options:
 <pid> [...]            send signal to every <pid> listed
 -<signal>, -s, --signal <signal>
                        specify the <signal> to be sent
 -l, --list=[<signal>]  list all signal names, or convert one to a name
 -L, --table            list all signal names in a nice table

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see kill(1).
Traceback (most recent call last):
  File "./dev/run-tests.py", line 626, in <module>
    main()
  File "./dev/run-tests.py", line 597, in main
    build_apache_spark(build_tool, hadoop_version)
  File "./dev/run-tests.py", line 389, in build_apache_spark
    build_spark_maven(hadoop_version)
  File "./dev/run-tests.py", line 329, in build_spark_maven
    exec_maven(profiles_and_goals)
  File "./dev/run-tests.py", line 270, in exec_maven
    kill_zinc_on_port(zinc_port)
  File "./dev/run-tests.py", line 258, in kill_zinc_on_port
    subprocess.check_call(cmd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/usr/sbin/lsof -P |grep 3156 | grep LISTEN | awk '{ print $2; }' | xargs kill' returned non-zero exit status 123
```

## How was this patch tested?

manually tested

Author: Kazuaki Ishizaki <ishizaki@jp.ibm.com>

Closes #19998 from kiszk/SPARK-22813.

xuanyuanking/spark,aosagie/spark,nchammas/spark,szhem/spark,LantaoJin/spark,HyukjinKwon/spark,spark-test/spark,wangmiao1981/spark,milliman/spark,michalsenkyr/spark,Aegeaner/spark,shaneknapp/spark,chuckchen/spark,highfei2011/spark,cloud-fan/spark,ddna1021/spark,bdrillard/spark,rezasafi/spark,chuckchen/spark,rednaxelafx/apache-spark,ddna1021/spark,actuaryzhang/spark,ueshin/apache-spark,BryanCutler/spark,jkbradley/spark,apache/spark,chuckchen/spark,kevinyu98/spark,ddna1021/spark,markhamstra/spark,nchammas/spark,highfei2011/spark,bdrillard/spark,sureshthalamati/spark,hvanhovell/spark,sahilTakiar/spark,mahak/spark,Aegeaner/spark,apache/spark,guoxiaolongzte/spark,wangmiao1981/spark,ptkool/spark,techaddict/spark,taroplus/spark,zhouyejoe/spark,srowen/spark,witgo/spark,yanboliang/spark,dbtsai/spark,goldmedal/spark,mdespriee/spark,darionyaphet/spark,cloud-fan/spark,ueshin/apache-spark,zuotingbing/spark,spark-test/spark,witgo/spark,bdrillard/spark,esi-mineset/spark,goldmedal/spark,eyalfa/spark,saltstar/spark,chuckchen/spark,JoshRosen/spark,debugger87/spark,WindCanDie/spark,LantaoJin/spark,sahilTakiar/spark,lvdongr/spark,WeichenXu123/spark,icexelloss/spark,ddna1021/spark,WindCanDie/spark,ahnqirage/spark,darionyaphet/spark,tengpeng/spark,spark-test/spark,rednaxelafx/apache-spark,joseph-torres/spark,skonto/spark,vinodkc/spark,mdespriee/spark,shuangshuangwang/spark,nchammas/spark,ConeyLiu/spark,ddna1021/spark,actuaryzhang/spark,zero323/spark,BryanCutler/spark,aosagie/spark,bravo-zhang/spark,facaiy/spark,icexelloss/spark,facaiy/spark,holdenk/spark,JoshRosen/spark,brad-kaiser/spark,guoxiaolongzte/spark,tejasapatil/spark,LantaoJin/spark,aosagie/spark,skonto/spark,zhouyejoe/spark,ptkool/spark,zuotingbing/spark,yanboliang/spark,rednaxelafx/apache-spark,eyalfa/spark,LantaoJin/spark,ConeyLiu/spark,icexelloss/spark,yanboliang/spark,szhem/spark,wangyum/spark,lxsmnv/spark,rezasafi/spark,rikima/spark,jkbradley/spark,milliman/spark,rekhajoshm/spark,vinodkc/spark,zzcclp/spark,rednaxelafx/apache-spark,rikima/spark,HyukjinKwon/spark,sureshthalamati/spark,apache/spark,bravo-zhang/spark,taroplus/spark,jkbradley/spark,zhouyejoe/spark,techaddict/spark,zzcclp/spark,michalsenkyr/spark,lvdongr/spark,mdespriee/spark,guoxiaolongzte/spark,sahilTakiar/spark,wangyum/spark,witgo/spark,chuckchen/spark,actuaryzhang/spark,kevinyu98/spark,bravo-zhang/spark,ahnqirage/spark,joseph-torres/spark,taroplus/spark,shuangshuangwang/spark,highfei2011/spark,hvanhovell/spark,joseph-torres/spark,tengpeng/spark,srowen/spark,hvanhovell/spark,LantaoJin/spark,spark-test/spark,kevinyu98/spark,brad-kaiser/spark,kevinyu98/spark,ConeyLiu/spark,WindCanDie/spark,zuotingbing/spark,eyalfa/spark,actuaryzhang/spark,goldmedal/spark,debugger87/spark,goldmedal/spark,gengliangwang/spark,jiangxb1987/spark,skonto/spark,xuanyuanking/spark,hhbyyh/spark,dongjoon-hyun/spark,eyalfa/spark,zhouyejoe/spark,HyukjinKwon/spark,jiangxb1987/spark,szhem/spark,zzcclp/spark,zero323/spark,vinodkc/spark,apache/spark,mahak/spark,kiszk/spark,zero323/spark,facaiy/spark,shuangshuangwang/spark,aosagie/spark,mahak/spark,sahilTakiar/spark,WeichenXu123/spark,debugger87/spark,actuaryzhang/spark,guoxiaolongzte/spark,dongjoon-hyun/spark,lxsmnv/spark,mahak/spark,dongjoon-hyun/spark,yanboliang/spark,wangmiao1981/spark,xuanyuanking/spark,WindCanDie/spark,eyalfa/spark,BryanCutler/spark,nchammas/spark,ConeyLiu/spark,skonto/spark,bravo-zhang/spark,lxsmnv/spark,rezasafi/spark,cloud-fan/spark,shuangshuangwang/spark,caneGuy/spark,caneGuy/spark,shaneknapp/spark,zzcclp/spark,zzcclp/spark,taroplus/spark,witgo/spark,ConeyLiu/spark,LantaoJin/spark,rikima/spark,rezasafi/spark,mdespriee/spark,highfei2011/spark,zzcclp/spark,JoshRosen/spark,rekhajoshm/spark,hhbyyh/spark,dbtsai/spark,JoshRosen/spark,yanboliang/spark,hvanhovell/spark,BryanCutler/spark,michalsenkyr/spark,ptkool/spark,hvanhovell/spark,ueshin/apache-spark,maropu/spark,ioana-delaney/spark,HyukjinKwon/spark,jiangxb1987/spark,xuanyuanking/spark,brad-kaiser/spark,skonto/spark,zhouyejoe/spark,markhamstra/spark,brad-kaiser/spark,tengpeng/spark,WindCanDie/spark,nchammas/spark,hhbyyh/spark,maropu/spark,gengliangwang/spark,rekhajoshm/spark,WindCanDie/spark,ahnqirage/spark,shaneknapp/spark,holdenk/spark,xuanyuanking/spark,bdrillard/spark,kevinyu98/spark,jkbradley/spark,ahnqirage/spark,kiszk/spark,esi-mineset/spark,wangyum/spark,hvanhovell/spark,jiangxb1987/spark,techaddict/spark,jiangxb1987/spark,ConeyLiu/spark,mdespriee/spark,lxsmnv/spark,milliman/spark,tengpeng/spark,goldmedal/spark,highfei2011/spark,ueshin/apache-spark,michalsenkyr/spark,darionyaphet/spark,szhem/spark,wzhfy/spark,apache/spark,apache/spark,nchammas/spark,joseph-torres/spark,shaneknapp/spark,kiszk/spark,caneGuy/spark,matthewfranglen/spark,rezasafi/spark,pgandhi999/spark,shaneknapp/spark,joseph-torres/spark,BryanCutler/spark,spark-test/spark,tengpeng/spark,bravo-zhang/spark,ptkool/spark,wzhfy/spark,debugger87/spark,pgandhi999/spark,kevinyu98/spark,dongjoon-hyun/spark,kiszk/spark,srowen/spark,joseph-torres/spark,lvdongr/spark,kiszk/spark,darionyaphet/spark,rikima/spark,caneGuy/spark,guoxiaolongzte/spark,cloud-fan/spark,zuotingbing/spark,michalsenkyr/spark,dbtsai/spark,nchammas/spark,aosagie/spark,techaddict/spark,brad-kaiser/spark,JoshRosen/spark,saltstar/spark,zero323/spark,kevinyu98/spark,guoxiaolongzte/spark,vinodkc/spark,HyukjinKwon/spark,lvdongr/spark,esi-mineset/spark,facaiy/spark,shuangshuangwang/spark,cloud-fan/spark,ddna1021/spark,Aegeaner/spark,vinodkc/spark,wzhfy/spark,ptkool/spark,caneGuy/spark,joseph-torres/spark,icexelloss/spark,dbtsai/spark,tejasapatil/spark,tejasapatil/spark,srowen/spark,saltstar/spark,WindCanDie/spark,esi-mineset/spark,Aegeaner/spark,zuotingbing/spark,eyalfa/spark,mahak/spark,holdenk/spark,rikima/spark,saltstar/spark,guoxiaolongzte/spark,sahilTakiar/spark,zhouyejoe/spark,ueshin/apache-spark,zuotingbing/spark,lxsmnv/spark,dongjoon-hyun/spark,JoshRosen/spark,sureshthalamati/spark,sahilTakiar/spark,LantaoJin/spark,rekhajoshm/spark,esi-mineset/spark,brad-kaiser/spark,rednaxelafx/apache-spark,icexelloss/spark,jkbradley/spark,pgandhi999/spark,gengliangwang/spark,spark-test/spark,bdrillard/spark,michalsenkyr/spark,hhbyyh/spark,markhamstra/spark,chuckchen/spark,WeichenXu123/spark,dongjoon-hyun/spark,icexelloss/spark,shuangshuangwang/spark,wzhfy/spark,gengliangwang/spark,srowen/spark,zzcclp/spark,mahak/spark,shuangshuangwang/spark,bravo-zhang/spark,techaddict/spark,maropu/spark,brad-kaiser/spark,rekhajoshm/spark,darionyaphet/spark,tejasapatil/spark,dbtsai/spark,JoshRosen/spark,HyukjinKwon/spark,HyukjinKwon/spark,shaneknapp/spark,witgo/spark,zero323/spark,hhbyyh/spark,bdrillard/spark,jkbradley/spark,sureshthalamati/spark,zero323/spark,taroplus/spark,cloud-fan/spark,pgandhi999/spark,darionyaphet/spark,eyalfa/spark,actuaryzhang/spark,gengliangwang/spark,wangmiao1981/spark,shaneknapp/spark,kiszk/spark,facaiy/spark,highfei2011/spark,lxsmnv/spark,jiangxb1987/spark,milliman/spark,lvdongr/spark,chuckchen/spark,ioana-delaney/spark,BryanCutler/spark,debugger87/spark,bdrillard/spark,hhbyyh/spark,wangmiao1981/spark,tengpeng/spark,kiszk/spark,vinodkc/spark,holdenk/spark,maropu/spark,markhamstra/spark,dongjoon-hyun/spark,mdespriee/spark,ConeyLiu/spark,cloud-fan/spark,xuanyuanking/spark,caneGuy/spark,wangmiao1981/spark,holdenk/spark,xuanyuanking/spark,zero323/spark,highfei2011/spark,holdenk/spark,wangyum/spark,sahilTakiar/spark,szhem/spark,lvdongr/spark,jkbradley/spark,wzhfy/spark,ioana-delaney/spark,wzhfy/spark,facaiy/spark,milliman/spark,techaddict/spark,wangyum/spark,saltstar/spark,vinodkc/spark,actuaryzhang/spark,rednaxelafx/apache-spark,techaddict/spark,goldmedal/spark,taroplus/spark,ptkool/spark,skonto/spark,sureshthalamati/spark,ddna1021/spark,szhem/spark,Aegeaner/spark,markhamstra/spark,goldmedal/spark,mahak/spark,ahnqirage/spark,yanboliang/spark,srowen/spark,mdespriee/spark,jiangxb1987/spark,caneGuy/spark,zuotingbing/spark,esi-mineset/spark,Aegeaner/spark,ahnqirage/spark,ueshin/apache-spark,michalsenkyr/spark,rezasafi/spark,rednaxelafx/apache-spark,rekhajoshm/spark,rikima/spark,skonto/spark,hhbyyh/spark,markhamstra/spark,maropu/spark,saltstar/spark,holdenk/spark,maropu/spark,dbtsai/spark,wangyum/spark,sureshthalamati/spark,wangmiao1981/spark,aosagie/spark,pgandhi999/spark,srowen/spark,aosagie/spark,lvdongr/spark,szhem/spark,facaiy/spark,gengliangwang/spark,ioana-delaney/spark,apache/spark,tejasapatil/spark,saltstar/spark,Aegeaner/spark,ptkool/spark,wangyum/spark,sureshthalamati/spark,maropu/spark,ioana-delaney/spark,debugger87/spark,pgandhi999/spark,rekhajoshm/spark,spark-test/spark,ioana-delaney/spark,WeichenXu123/spark,gengliangwang/spark,taroplus/spark,lxsmnv/spark,ahnqirage/spark,dbtsai/spark,tejasapatil/spark,esi-mineset/spark,darionyaphet/spark,WeichenXu123/spark,WeichenXu123/spark,wzhfy/spark,bravo-zhang/spark,rezasafi/spark,markhamstra/spark,debugger87/spark,ioana-delaney/spark,milliman/spark,rikima/spark,witgo/spark,hvanhovell/spark,zhouyejoe/spark,witgo/spark,WeichenXu123/spark,pgandhi999/spark,milliman/spark,ueshin/apache-spark,tejasapatil/spark,icexelloss/spark,yanboliang/spark,BryanCutler/spark,tengpeng/spark