How do I find out what Python modules are installed on my Spark cluster?
CompletedThis code provides one way to determine what Python modules are installed on the running Spark cluster. Place this code in a Spark processor and run a job. When the job completes, check the logs for a list of Python modules
import os
x = os.system("pip freeze")
print(x)
Please sign in to leave a comment.
Comments
2 comments