This thread here showed how to run Python script file with pyspark
. Particularly, this is the command I am using:
% pyspark < script.py
I want to pass an argument (a config file) to this script.py
. Normally, running with Python alone, this would work:
% python script.py conf.ini
But with pyspark
:
% pyspark < script.py conf.ini
I get the following error message:
Error: pyspark does not support any application options.
Is it possible to do this execution?