SPARK-1734: spark-submit throws an exception: Exception in thread "main"...

... java.lang.ClassNotFoundException: org.apache.spark.broadcast.TorrentBroadcastFactory

Author: witgo <witgo@qq.com>

Closes #665 from witgo/SPARK-1734 and squashes the following commits:

cacf238 [witgo] SPARK-1734: spark-submit throws an exception: Exception in thread "main" java.lang.ClassNotFoundException: org.apache.spark.broadcast.TorrentBroadcastFactory
This commit is contained in:
witgo 2014-05-06 14:17:39 -07:00 committed by Patrick Wendell
parent fbfe69de69
commit ec09acdd4a

View file

@ -333,6 +333,6 @@ object SparkSubmitArguments {
val message = s"Failed when loading Spark properties file ${file.getName}"
throw new SparkException(message, e)
}
properties.stringPropertyNames().toSeq.map(k => (k, properties(k)))
properties.stringPropertyNames().toSeq.map(k => (k, properties(k).trim))
}
}