You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/08/12 04:39:14 UTC
[GitHub] [spark] viirya commented on a change in pull request #25411:
[SPARK-28652][TESTS][K8S] Add python version check for executor
viirya commented on a change in pull request #25411: [SPARK-28652][TESTS][K8S] Add python version check for executor
URL: https://github.com/apache/spark/pull/25411#discussion_r312778434
##########
File path: resource-managers/kubernetes/integration-tests/tests/pyfiles.py
##########
@@ -35,4 +36,11 @@
# Begin of Python container checks
version_check(sys.argv[1], 2 if sys.argv[1] == "python" else 3)
+ # Check python executable at executors
+ spark.catalog.registerFunction("getSysVer",
+ lambda: "%d.%d" % sys.version_info[:2], StringType())
+ [row] = spark.sql("SELECT getSysVer()").collect()
+ driverVersion = "%d.%d" % sys.version_info[:2]
Review comment:
Yes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org