PYTHON SPARK (PYSPARK)
a spark prog has 2 programs:
- dirver program: runs on driver machine
- worker program: runs on local threads or cluster nodes
a spark prog first creates a SparkContext object:
- tells how and where to access a cluster
- shell will automatically create the sc varible
- in iPython: use …
