Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/5116#discussion_r28472704
--- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
@@ -2106,6 +2106,11 @@ private[spark] object Utils extends Logging {
.getOrElse(UserGroupInformation.getCurrentUser().getShortUserName())
}
+ def splitMasterAdress(masterAddr: String): Array[String] = {
+ masterAddr.stripPrefix("spark://").split(",").map("spark://" + _)
+ }
+
+ val MASTER_NOT_ALIVE_STRING = "Current state is not alive: "
--- End diff --
I would call this
```
/** An identifier that backup masters use in their responses. */
val STANDALONE_MASTER_STANDBY_PREFIX = ...
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]