-
- Downloads
Merge pull request #556 from CodingCat/JettyUtil. Closes #556.
[SPARK-1060] startJettyServer should explicitly use IP information https://spark-project.atlassian.net/browse/SPARK-1060 In the current implementation, the webserver in Master/Worker is started with val (srv, bPort) = JettyUtils.startJettyServer("0.0.0.0", port, handlers) inside startJettyServer: val server = new Server(currentPort) //here, the Server will take "0.0.0.0" as the hostname, i.e. will always bind to the IP address of the first NIC this can cause wrong IP binding, e.g. if the host has two NICs, N1 and N2, the user specify the SPARK_LOCAL_IP as the N2's IP address, however, when starting the web server, for the reason stated above, it will always bind to the N1's address Author: CodingCat <zhunansjtu@gmail.com> == Merge branch commits == commit 6c6d9a8ccc9ec4590678a3b34cb03df19092029d Author: CodingCat <zhunansjtu@gmail.com> Date: Thu Feb 6 14:53:34 2014 -0500 startJettyServer should explicitly use IP information
Showing
- core/src/main/scala/org/apache/spark/deploy/master/ui/MasterWebUI.scala 1 addition, 1 deletion...scala/org/apache/spark/deploy/master/ui/MasterWebUI.scala
- core/src/main/scala/org/apache/spark/deploy/worker/ui/WorkerWebUI.scala 1 addition, 1 deletion...scala/org/apache/spark/deploy/worker/ui/WorkerWebUI.scala
- core/src/main/scala/org/apache/spark/ui/JettyUtils.scala 6 additions, 3 deletionscore/src/main/scala/org/apache/spark/ui/JettyUtils.scala
- core/src/main/scala/org/apache/spark/ui/SparkUI.scala 1 addition, 1 deletioncore/src/main/scala/org/apache/spark/ui/SparkUI.scala
- core/src/test/scala/org/apache/spark/ui/UISuite.scala 3 additions, 3 deletionscore/src/test/scala/org/apache/spark/ui/UISuite.scala
Loading
Please register or sign in to comment