[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
spark:using-python [2014/11/11 09:31]
straka
spark:using-python [2015/10/23 14:24]
ufal
Line 71: Line 71:
   * start Spark cluster (10 machines, 1GB RAM each) on SGE and run ''word_count.py'' script:   * start Spark cluster (10 machines, 1GB RAM each) on SGE and run ''word_count.py'' script:
   <file>spark-qsub 10 1G spark-submit word_count.py /net/projects/spark-example-data/wiki-cs outdir</file>   <file>spark-qsub 10 1G spark-submit word_count.py /net/projects/spark-example-data/wiki-cs outdir</file>
 +
 +===== Using Virtual Environments =====
 +
 +If you want to use specific virtual environment in your Spark job, use
 +<file>PYSPARK_PYTHON=path_to_python_in_venv [pyspark|spark-submit]</file>
  

[ Back to the navigation ] [ Back to the content ]