Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs425-mp4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arshiam2
cs425-mp4
Commits
95d28233
Commit
95d28233
authored
6 years ago
by
Khanna
Browse files
Options
Downloads
Patches
Plain Diff
update readme
parent
302bfa9d
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apache-spark/README.md
+13
-13
13 additions, 13 deletions
apache-spark/README.md
with
13 additions
and
13 deletions
apache-spark/README.md
+
13
−
13
View file @
95d28233
#
# Prerequisites:
# Prerequisites:
# Java 7+ installed on master & slave machines
# Scala 2+ installed on master & slave machines
# PySpark installed on master machine (`sudo pip install pyspark`)
# apache-spark project & streaming files cloned on each slave machine
##
# Java 7+ installed on master & slave machines
##
# Scala 2+ installed on master & slave machines
##
# PySpark installed on master machine (`sudo pip install pyspark`)
##
# apache-spark project & streaming files cloned on each slave machine
#
# Start up Spark cluster
# Start up Spark cluster
```
./sbin/start-all.sh
```
# This starts up VMs 2-10 as worker machines, cluster summary can be seen on http://MASTER-IP:8080/
##
# This starts up VMs 2-10 as worker machines, cluster summary can be seen on http://MASTER-IP:8080/
#
# Submit a word count job to the cluster
# Submit a word count job to the cluster
```
bin/spark-submit --master spark://MASTER-IP:7077 --deploy-mode client ~/apache-spark/python/wordcount.py ~/apache-spark/python/higgs-activity_time.txt
```
# Job summary can be seen on http://MASTER-IP:4040/
##
# Job summary can be seen on http://MASTER-IP:4040/
# Notes:
#
# Notes:
# 1. spark-env.sh file within conf/ should be modified as per job & master/slave requirements
# 2. /etc/hosts file on master & slave should have IP addresses resolved to the same hostnames within the slaves file in conf/
# 3. Project includes setup scripts/examples/driver code from Apache Spark
##
# 1.
`
spark-env.sh
`
file within
`
conf/
`
should be modified as per job & master/slave requirements
##
# 2.
`
/etc/hosts
`
file on master & slave should have IP addresses resolved to the same hostnames within the slaves file in
`
conf/
`
##
# 3. Project includes setup scripts/examples/driver code from Apache Spark
(https://github.com/apache/spark)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment