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
52723b99
Commit
52723b99
authored
11 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Plain Diff
Merge pull request #728 from jey/examples-jar-env
Fix setting of SPARK_EXAMPLES_JAR
parents
20338c29
1d101928
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
bin/compute-classpath.sh
+0
-11
0 additions, 11 deletions
bin/compute-classpath.sh
run
+13
-0
13 additions, 0 deletions
run
with
13 additions
and
11 deletions
bin/compute-classpath.sh
+
0
−
11
View file @
52723b99
...
...
@@ -76,17 +76,6 @@ function dev_classpath {
CLASSPATH
=
"
$CLASSPATH
:
$jar
"
done
# Figure out the JAR file that our examples were packaged into. This includes a bit of a hack
# to avoid the -sources and -doc packages that are built by publish-local.
if
[
-e
"
$EXAMPLES_DIR
/target/scala-
$SCALA_VERSION
/spark-examples"
*
[
0-9T].jar
]
;
then
# Use the JAR from the SBT build
export
SPARK_EXAMPLES_JAR
=
`
ls
"
$EXAMPLES_DIR
/target/scala-
$SCALA_VERSION
/spark-examples"
*
[
0-9T].jar
`
fi
if
[
-e
"
$EXAMPLES_DIR
/target/spark-examples"
*
[
0-9T].jar
]
;
then
# Use the JAR from the Maven build
export
SPARK_EXAMPLES_JAR
=
`
ls
"
$EXAMPLES_DIR
/target/spark-examples"
*
[
0-9T].jar
`
fi
# Add Scala standard library
if
[
-z
"
$SCALA_LIBRARY_PATH
"
]
;
then
if
[
-z
"
$SCALA_HOME
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
run
+
13
−
0
View file @
52723b99
...
...
@@ -17,6 +17,8 @@
# limitations under the License.
#
SCALA_VERSION
=
2.9.3
# Figure out where the Scala framework is installed
FWDIR
=
"
$(
cd
`
dirname
$0
`
;
pwd
)
"
...
...
@@ -136,6 +138,17 @@ if [ ! -f "$FWDIR/RELEASE" ]; then
echo
"You need to compile Spark repl module before running this program"
>
&2
exit
1
fi
# Figure out the JAR file that our examples were packaged into. This includes a bit of a hack
# to avoid the -sources and -doc packages that are built by publish-local.
if
[
-e
"
$EXAMPLES_DIR
/target/scala-
$SCALA_VERSION
/spark-examples"
*
[
0-9T].jar
]
;
then
# Use the JAR from the SBT build
export
SPARK_EXAMPLES_JAR
=
`
ls
"
$EXAMPLES_DIR
/target/scala-
$SCALA_VERSION
/spark-examples"
*
[
0-9T].jar
`
fi
if
[
-e
"
$EXAMPLES_DIR
/target/spark-examples"
*
[
0-9T].jar
]
;
then
# Use the JAR from the Maven build
export
SPARK_EXAMPLES_JAR
=
`
ls
"
$EXAMPLES_DIR
/target/spark-examples"
*
[
0-9T].jar
`
fi
fi
# Compute classpath using external script
...
...
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