Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/20519#discussion_r167015747
--- Diff: python/pyspark/daemon.py ---
@@ -177,4 +183,24 @@ def handle_sigterm(*args):
if __name__ == '__main__':
- manager()
+ if len(sys.argv) < 2:
+ print >> sys.stderr, "No parent port number specified"
+ sys.exit(1)
+ try:
+ parent_port = int(sys.argv[1])
+ except ValueError:
+ print >> sys.stderr, "Non-numeric port number specified:",
sys.argv[1]
--- End diff --
I don't think this syntax works with python 3.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]