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
1cbef081
Commit
1cbef081
authored
11 years ago
by
Patrick Wendell
Browse files
Options
Downloads
Patches
Plain Diff
Response to Shivaram's review
parent
cffe1c1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/src/main/scala/org/apache/spark/Logging.scala
+1
-1
1 addition, 1 deletion
core/src/main/scala/org/apache/spark/Logging.scala
spark-class
+17
-14
17 additions, 14 deletions
spark-class
with
18 additions
and
15 deletions
core/src/main/scala/org/apache/spark/Logging.scala
+
1
−
1
View file @
1cbef081
...
@@ -93,7 +93,7 @@ trait Logging {
...
@@ -93,7 +93,7 @@ trait Logging {
// threads do it concurrently (as SLF4J initialization is not thread safe).
// threads do it concurrently (as SLF4J initialization is not thread safe).
protected
def
initLogging
()
{
protected
def
initLogging
()
{
// If Log4j doesn't seem initialized, load a default properties file
// If Log4j doesn't seem initialized, load a default properties file
def
log4jInitialized
=
LogManager
.
getRootLogger
.
getAllAppenders
.
hasMoreElements
val
log4jInitialized
=
LogManager
.
getRootLogger
.
getAllAppenders
.
hasMoreElements
if
(!
log4jInitialized
)
{
if
(!
log4jInitialized
)
{
val
defaultLogProps
=
"org/apache/spark/default-log4j.properties"
val
defaultLogProps
=
"org/apache/spark/default-log4j.properties"
val
classLoader
=
this
.
getClass
.
getClassLoader
val
classLoader
=
this
.
getClass
.
getClassLoader
...
...
This diff is collapsed.
Click to expand it.
spark-class
+
17
−
14
View file @
1cbef081
...
@@ -115,27 +115,30 @@ if [ ! -f "$FWDIR/RELEASE" ]; then
...
@@ -115,27 +115,30 @@ if [ ! -f "$FWDIR/RELEASE" ]; then
fi
fi
fi
fi
if
[
"
$1
"
==
"org.apache.spark.tools.JavaAPICompletenessChecker"
]
;
then
TOOLS_DIR
=
"
$FWDIR
"
/tools
TOOLS_DIR
=
"
$FWDIR
"
/tools
SPARK_TOOLS_JAR
=
""
SPARK_TOOLS_JAR
=
""
if
[
-e
"
$TOOLS_DIR
"
/target/scala-
$SCALA_VERSION
/
*
assembly
*
[
0-9Tg].jar
]
;
then
if
[
-e
"
$TOOLS_DIR
"
/target/scala-
$SCALA_VERSION
/
*
assembly
*
[
0-9Tg].jar
]
;
then
# Use the JAR from the SBT build
# Use the JAR from the SBT build
export
SPARK_TOOLS_JAR
=
`
ls
"
$TOOLS_DIR
"
/target/scala-
$SCALA_VERSION
/
*
assembly
*
[
0-9Tg].jar
`
export
SPARK_TOOLS_JAR
=
`
ls
"
$TOOLS_DIR
"
/target/scala-
$SCALA_VERSION
/
*
assembly
*
[
0-9Tg].jar
`
fi
fi
if
[
-e
"
$TOOLS_DIR
"
/target/spark-tools
*
[
0-9Tg].jar
]
;
then
if
[
-e
"
$TOOLS_DIR
"
/target/spark-tools
*
[
0-9Tg].jar
]
;
then
# Use the JAR from the Maven build
# Use the JAR from the Maven build
# TODO: this also needs to become an assembly!
# TODO: this also needs to become an assembly!
export
SPARK_TOOLS_JAR
=
`
ls
"
$TOOLS_DIR
"
/target/spark-tools
*
[
0-9Tg].jar
`
export
SPARK_TOOLS_JAR
=
`
ls
"
$TOOLS_DIR
"
/target/spark-tools
*
[
0-9Tg].jar
`
fi
fi
fi
# Compute classpath using external script
# Compute classpath using external script
CLASSPATH
=
`
$FWDIR
/bin/compute-classpath.sh
`
CLASSPATH
=
`
$FWDIR
/bin/compute-classpath.sh
`
CLASSPATH
=
"
$CLASSPATH
:
$SPARK_TOOLS_JAR
"
if
[
"
$1
"
==
"org.apache.spark.tools.JavaAPICompletenessChecker"
]
;
then
CLASSPATH
=
"
$CLASSPATH
:
$SPARK_TOOLS_JAR
"
fi
if
$cygwin
;
then
if
$cygwin
;
then
CLASSPATH
=
`
cygpath
-wp
$CLASSPATH
`
CLASSPATH
=
`
cygpath
-wp
$CLASSPATH
`
export
SPARK_TOOLS_JAR
=
`
cygpath
-w
$SPARK_TOOLS_JAR
`
if
[
"
$1
"
==
"org.apache.spark.tools.JavaAPICompletenessChecker"
]
;
then
export
SPARK_TOOLS_JAR
=
`
cygpath
-w
$SPARK_TOOLS_JAR
`
fi
fi
fi
export
CLASSPATH
export
CLASSPATH
...
...
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