-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi-tracker branch now compiles and runs; but it crashes right befo…
…re the end. The same problem is seen also in the master branch (in the ChainedStreaming implementation)
- Loading branch information
Mosharaf Chowdhury
committed
Oct 12, 2010
1 parent
4fdd482
commit 0d67bc1
Showing
122 changed files
with
1,479 additions
and
16,160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,40 @@ | ||
Spark requires Scala 2.8. This version has been tested with 2.8.0RC3. | ||
BUILDING | ||
|
||
Spark requires Scala 2.8. This version has been tested with 2.8.0.final. | ||
|
||
To build and run Spark, you will need to have Scala's bin in your $PATH, | ||
or you will need to set the SCALA_HOME environment variable to point | ||
to where you've installed Scala. Scala must be accessible through one | ||
of these methods on Nexus slave nodes as well as on the master. | ||
of these methods on Mesos slave nodes as well as on the master. | ||
|
||
To build Spark and the example programs, run make. | ||
|
||
To run one of the examples, use ./run <class> <params>. For example, | ||
./run SparkLR will run the Logistic Regression example. Each of the | ||
example programs prints usage help if no params are given. | ||
|
||
All of the Spark samples take a <host> parameter that is the Mesos master | ||
to connect to. This can be a Mesos URL, or "local" to run locally with one | ||
thread, or "local[N]" to run locally with N threads. | ||
|
||
Tip: If you are building Spark and examples repeatedly, export USE_FSC=1 | ||
to have the Makefile use the fsc compiler daemon instead of scalac. | ||
|
||
CONFIGURATION | ||
|
||
Spark can be configured through two files: conf/java-opts and conf/spark-env.sh. | ||
|
||
In java-opts, you can add flags to be passed to the JVM when running Spark. | ||
|
||
In spark-env.sh, you can set any environment variables you wish to be available | ||
when running Spark programs, such as PATH, SCALA_HOME, etc. There are also | ||
several Spark-specific variables you can set: | ||
- SPARK_CLASSPATH: Extra entries to be added to the classpath, separated by ":". | ||
- SPARK_MEM: Memory for Spark to use, in the format used by java's -Xmx option | ||
(for example, 200m meams 200 MB, 1g means 1 GB, etc). | ||
- SPARK_LIBRARY_PATH: Extra entries to add to java.library.path for locating | ||
shared libraries. | ||
- SPARK_JAVA_OPTS: Extra options to pass to JVM. | ||
|
||
Note that spark-env.sh must be a shell script (it must be executable and start | ||
with a #! header to specify the shell to use). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-Dspark.broadcast.masterHostAddress=127.0.0.1 -Dspark.broadcast.masterTrackerPort=11111 -Dspark.broadcast.blockSize=1024 -Dspark.broadcast.maxRetryCount=2 -Dspark.broadcast.serverSocketTimout=50000 -Dspark.broadcast.dualMode=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Set everything to be logged to the console | ||
log4j.rootCategory=INFO, console | ||
log4j.appender.console=org.apache.log4j.ConsoleAppender | ||
log4j.appender.console.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n | ||
|
||
# Ignore messages below warning level from Jetty, because it's a bit verbose | ||
log4j.logger.org.eclipse.jetty=WARN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Set Spark environment variables for your site in this file. Some useful | ||
# variables to set are: | ||
# - MESOS_HOME, to point to your Mesos installation | ||
# - SCALA_HOME, to point to your Scala installation | ||
# - SPARK_CLASSPATH, to add elements to Spark's classpath | ||
# - SPARK_JAVA_OPTS, to add JVM options | ||
# - SPARK_MEM, to change the amount of memory used per node (this should | ||
# be in the same format as the JVM's -Xmx option, e.g. 300m or 1g). | ||
# - SPARK_LIBRARY_PATH, to add extra search paths for native libraries. | ||
|
||
MESOS_HOME=/home/mosharaf/Work/mesos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/sh | ||
echo "In spark-executor" | ||
FWDIR="`dirname $0`" | ||
echo Framework dir: $FWDIR | ||
echo "Running spark-executor with framework dir = $FWDIR" | ||
exec $FWDIR/run spark.Executor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.