Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/19359#discussion_r141747358
--- Diff: dev/create-release/release-build.sh ---
@@ -345,16 +345,14 @@ if [[ "$1" == "publish-snapshot" ]]; then
# -DskipTests $SCALA_2_12_PROFILES $PUBLISH_PROFILES clean deploy
# Clean-up Zinc nailgun process
- /usr/sbin/lsof -P |grep $ZINC_PORT | grep LISTEN | awk '{ print $2; }' |
xargs kill
+ lsof -P |grep $ZINC_PORT | grep LISTEN | awk '{ print $2; }' | xargs kill
--- End diff --
If this is a thing people are likely to run into I can add some code to
check for lsof in different places under usr, but that seems brittle. Checking
on one of the jenkins machines, my local laptop, and a random debian server I
run `lsof` all works as a non-root user just fine. (Although searching on
Google does indeed result in some folks who have had to either add `/usr/sbin`
or other dir to their path as a non-root user).
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]