Temporary fix for issue #42.
This commit is contained in:
parent
5c9535228a
commit
9d2d533493
|
@ -1079,6 +1079,9 @@ extends Logging {
|
||||||
def initialize (isMaster__ : Boolean): Unit = {
|
def initialize (isMaster__ : Boolean): Unit = {
|
||||||
synchronized {
|
synchronized {
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
|
// Fix for issue #42
|
||||||
|
MasterHostAddress_ =
|
||||||
|
System.getProperty ("spark.broadcast.masterHostAddress", "")
|
||||||
MasterTrackerPort_ =
|
MasterTrackerPort_ =
|
||||||
System.getProperty ("spark.broadcast.masterTrackerPort", "11111").toInt
|
System.getProperty ("spark.broadcast.masterTrackerPort", "11111").toInt
|
||||||
BlockSize_ =
|
BlockSize_ =
|
||||||
|
|
|
@ -745,6 +745,9 @@ extends Logging {
|
||||||
def initialize (isMaster__ : Boolean): Unit = {
|
def initialize (isMaster__ : Boolean): Unit = {
|
||||||
synchronized {
|
synchronized {
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
|
// Fix for issue #42
|
||||||
|
MasterHostAddress_ =
|
||||||
|
System.getProperty ("spark.broadcast.masterHostAddress", "")
|
||||||
MasterTrackerPort_ =
|
MasterTrackerPort_ =
|
||||||
System.getProperty ("spark.broadcast.masterTrackerPort", "22222").toInt
|
System.getProperty ("spark.broadcast.masterTrackerPort", "22222").toInt
|
||||||
BlockSize_ =
|
BlockSize_ =
|
||||||
|
|
Loading…
Reference in a new issue