spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-22813) run-tests.py fails when /usr/sbin/lsof does not exist
Date Sat, 16 Dec 2017 02:32:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-22813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Apache Spark reassigned SPARK-22813:
------------------------------------

    Assignee:     (was: Apache Spark)

> run-tests.py fails when /usr/sbin/lsof does not exist
> -----------------------------------------------------
>
>                 Key: SPARK-22813
>                 URL: https://issues.apache.org/jira/browse/SPARK-22813
>             Project: Spark
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 2.2.1, 2.3.0
>            Reporter: Kazuaki Ishizaki
>            Priority: Minor
>
> Running ./dev/run-tests.py for mvn on OS that does not have /usr/sbin/lsof (e.g. /usr/bin/lsof)
gives the error
> {code}
> /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
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message