Skip to content
Snippets Groups Projects
Commit f61b61c4 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge branch 'master' into new-rdds

parents 24a1e7f8 9d2d5334
No related branches found
No related tags found
No related merge requests found
......@@ -1079,6 +1079,9 @@ extends Logging {
def initialize (isMaster__ : Boolean): Unit = {
synchronized {
if (!initialized) {
// Fix for issue #42
MasterHostAddress_ =
System.getProperty ("spark.broadcast.masterHostAddress", "")
MasterTrackerPort_ =
System.getProperty ("spark.broadcast.masterTrackerPort", "11111").toInt
BlockSize_ =
......
......@@ -745,6 +745,9 @@ extends Logging {
def initialize (isMaster__ : Boolean): Unit = {
synchronized {
if (!initialized) {
// Fix for issue #42
MasterHostAddress_ =
System.getProperty ("spark.broadcast.masterHostAddress", "")
MasterTrackerPort_ =
System.getProperty ("spark.broadcast.masterTrackerPort", "22222").toInt
BlockSize_ =
......
......@@ -253,9 +253,11 @@ extends MScheduler with DAGScheduler with Logging
// Copy each JAR to a unique filename in the jarDir
for ((path, index) <- sc.jars.zipWithIndex) {
val file = new File(path)
val filename = index + "_" + file.getName
copyFile(file, new File(jarDir, filename))
filenames += filename
if (file.exists) {
val filename = index + "_" + file.getName
copyFile(file, new File(jarDir, filename))
filenames += filename
}
}
// Create the server
jarServer = new HttpServer(jarDir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment