Github user tnachen commented on a diff in the pull request: https://github.com/apache/spark/pull/11887#discussion_r65579886 --- Diff: core/src/main/scala/org/apache/spark/deploy/mesos/ui/MesosClusterPage.scala --- @@ -115,4 +142,58 @@ private[mesos] class MesosClusterPage(parent: MesosClusterUI) extends WebUIPage( } sb.toString() } + + private def getIp4(ip: Int): String = { + val buffer = ByteBuffer.allocate(4) + buffer.putInt(ip) + // we need to check about that because protocolbuf changes the order + // which by mesos api is considered to be network order (big endian). + val result = if (ByteOrder.nativeOrder() == ByteOrder.LITTLE_ENDIAN) { + buffer.array.toList.reverse + } else { + buffer.array.toList + } + result.map{byte => byte & 0xFF}.mkString(".") + } + + private def getListFromJson(value: JValue): List[Map[String, Any]] = { + value.values.asInstanceOf[List[Map[String, Any]]] + } + + private def getTaskDirectory(masterUri: String, driverFwId: String, slaveId: String): + Option[String] = { + --- End diff -- Remove extra white spaces here.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org