am trying to submit spark job on standalone cluster, I've zipped the virtualenv as venv.zip and I submit the job as shell script
#!/bin/sh
PYSPARK_PYTHON=./venv/bin/python \
PYSPARK_DRIVER_PYTHON=./venv/bin/python
spark-submit \
--jars ojdbc6.jar \
--master spark://HOST:7077 \
--archives venv.zip#venv \
job.py
but I keep getting that modules are not found even though it exists in the venv and it runs fine in local mode.
I also tried to log into worker node and try run the venv, after activating the virtualenv manually , the modules can be found, it seems the scripts are using system-wide python, how can I fix this ?