Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
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
cs525-sp18-g07
spark
Commits
e54a37fe
Commit
e54a37fe
authored
11 years ago
by
Evan Chan
Browse files
Options
Downloads
Patches
Plain Diff
Document all the URIs for addJar/addFile
parent
8f1098a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/cluster-overview.md
+13
-1
13 additions, 1 deletion
docs/cluster-overview.md
with
13 additions
and
1 deletion
docs/cluster-overview.md
+
13
−
1
View file @
e54a37fe
...
...
@@ -13,7 +13,7 @@ object in your main program (called the _driver program_).
Specifically, to run on a cluster, the SparkContext can connect to several types of _cluster managers_
(either Spark's own standalone cluster manager or Mesos/YARN), which allocate resources across
applications. Once connected, Spark acquires
*executors*
on nodes in the cluster, which are
worker processes that run computations and store data for your application.
worker processes that run computations and store data for your application.
Next, it sends your application code (defined by JAR or Python files passed to SparkContext) to
the executors. Finally, SparkContext sends
*tasks*
for the executors to run.
...
...
@@ -57,6 +57,18 @@ which takes a list of JAR files (Java/Scala) or .egg and .zip libraries (Python)
worker nodes. You can also dynamically add new files to be sent to executors with
`SparkContext.addJar`
and
`addFile`
.
## URIs for addJar / addFile
-
**file:**
- Absolute paths and
`file:/`
URIs are served by the driver's HTTP file server, and every executor
pulls the file from the driver HTTP server
-
**hdfs:**
,
**http:**
,
**https:**
,
**ftp:**
- these pull down files and JARs from the URI as expected
-
**local:**
- a URI starting with local:/ is expected to exist as a local file on each worker node. This
means that no network IO will be incurred, and works well for large files/JARs that are pushed to each worker,
or shared via NFS, GlusterFS, etc.
Note that JARs and files are copied to the working directory for each SparkContext on the executor nodes.
Over time this can use up a significant amount of space and will need to be cleaned up.
# Monitoring
Each driver program has a web UI, typically on port 4040, that displays information about running
...
...
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