Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 886 Bytes

README.md

File metadata and controls

25 lines (13 loc) · 886 Bytes

Python4fun

Spark & Pandas batch processing demo, data will be loaded from local, remote s3 and HDFS.

Quickstart

(1) Run locally

python spark-pandas-hdfs-s3.py

(2) Subimit job to your spark stand-alone cluster, if you already have one:)

$SPARK_HOME/bin/spark-submit --master spark://node1:7077 --deploy-mode cluster --executor-memory 1g spark-pandas-hdfs-s3.py

(2) Submit job to yarn on top of your hdfs cluster, if you already have one:)

$spark-submit --master yarn --deploy-mode cluster --executor-memory 1g --packages com.databricks:spark-csv_2.10:1.5.0 spark-CDH5-1.6-hdfs-yarn.py

The logs you may want to expect in your local testing:

img img