forked from mahmoudparsian/pyspark-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added self-contained word count in PySpark
- Loading branch information
1 parent
d413439
commit 9df039f
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# define Spark's installed directory | ||
export SPARK_HOME="/Users/mparsian/spark-2.2.1" | ||
# | ||
# define your input path | ||
#INPUT_PATH="$SPARK_HOME/licenses/LICENSE-heapq.txt" | ||
# | ||
# define your PySpark program | ||
PROG="/Users/mparsian/zmp/pyspark_book_project/programs/word_count.py" | ||
# | ||
# submit your spark application | ||
$SPARK_HOME/bin/spark-submit $PROG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# define Spark's installed directory | ||
export SPARK_HOME="/Users/mparsian/spark-2.2.1" | ||
# | ||
# define your input path | ||
INPUT_PATH="file:///Users/mparsian/spark-2.2.1/zbin/sample.txt" | ||
# | ||
# define your PySpark program | ||
PROG="/Users/mparsian/zmp/github/pyspark-tutorial/tutorial/wordcount/word_count_ver2.py" | ||
# | ||
# submit your spark application | ||
$SPARK_HOME/bin/spark-submit $PROG $INPUT_PATH |