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
25446dd9
Commit
25446dd9
authored
11 years ago
by
Thomas Graves
Browse files
Options
Downloads
Patches
Plain Diff
Add warning to null setJars check
parent
ad35c1a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/org/apache/spark/SparkConf.scala
+2
-1
2 additions, 1 deletion
core/src/main/scala/org/apache/spark/SparkConf.scala
with
2 additions
and
1 deletion
core/src/main/scala/org/apache/spark/SparkConf.scala
+
2
−
1
View file @
25446dd9
...
@@ -24,7 +24,7 @@ import com.typesafe.config.ConfigFactory
...
@@ -24,7 +24,7 @@ import com.typesafe.config.ConfigFactory
*
*
* @param loadDefaults whether to load values from the system properties and classpath
* @param loadDefaults whether to load values from the system properties and classpath
*/
*/
class
SparkConf
(
loadDefaults
:
Boolean
)
extends
Serializable
with
Cloneable
{
class
SparkConf
(
loadDefaults
:
Boolean
)
extends
Serializable
with
Cloneable
with
Logging
{
/** Create a SparkConf that loads defaults from system properties and the classpath */
/** Create a SparkConf that loads defaults from system properties and the classpath */
def
this
()
=
this
(
true
)
def
this
()
=
this
(
true
)
...
@@ -67,6 +67,7 @@ class SparkConf(loadDefaults: Boolean) extends Serializable with Cloneable {
...
@@ -67,6 +67,7 @@ class SparkConf(loadDefaults: Boolean) extends Serializable with Cloneable {
/** Set JAR files to distribute to the cluster. */
/** Set JAR files to distribute to the cluster. */
def
setJars
(
jars
:
Seq
[
String
])
:
SparkConf
=
{
def
setJars
(
jars
:
Seq
[
String
])
:
SparkConf
=
{
for
(
jar
<-
jars
if
(
jar
==
null
))
logWarning
(
"null jar passed to SparkContext constructor"
)
set
(
"spark.jars"
,
jars
.
filter
(
_
!=
null
).
mkString
(
","
))
set
(
"spark.jars"
,
jars
.
filter
(
_
!=
null
).
mkString
(
","
))
}
}
...
...
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