Skip to content
Snippets Groups Projects
Commit 793a722f authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Allow some wiggle room in UISuite port test and in EC2 ports

parent 498a2618
No related branches found
No related tags found
No related merge requests found
...@@ -30,8 +30,9 @@ class UISuite extends FunSuite { ...@@ -30,8 +30,9 @@ class UISuite extends FunSuite {
val (jettyServer1, boundPort1) = JettyUtils.startJettyServer("localhost", startPort, Seq()) val (jettyServer1, boundPort1) = JettyUtils.startJettyServer("localhost", startPort, Seq())
val (jettyServer2, boundPort2) = JettyUtils.startJettyServer("localhost", startPort, Seq()) val (jettyServer2, boundPort2) = JettyUtils.startJettyServer("localhost", startPort, Seq())
assert(boundPort1 === startPort + 1) // Allow some wiggle room in case ports on the machine are under contention
assert(boundPort2 === startPort + 2) assert(boundPort1 > startPort && boundPort1 < startPort + 10)
assert(boundPort2 > boundPort1 && boundPort2 < boundPort1 + 10)
} }
test("jetty binds to port 0 correctly") { test("jetty binds to port 0 correctly") {
......
...@@ -178,7 +178,7 @@ def launch_cluster(conn, opts, cluster_name): ...@@ -178,7 +178,7 @@ def launch_cluster(conn, opts, cluster_name):
master_group.authorize('tcp', 50030, 50030, '0.0.0.0/0') master_group.authorize('tcp', 50030, 50030, '0.0.0.0/0')
master_group.authorize('tcp', 50070, 50070, '0.0.0.0/0') master_group.authorize('tcp', 50070, 50070, '0.0.0.0/0')
master_group.authorize('tcp', 60070, 60070, '0.0.0.0/0') master_group.authorize('tcp', 60070, 60070, '0.0.0.0/0')
master_group.authorize('tcp', 3030, 3030, '0.0.0.0/0') master_group.authorize('tcp', 3030, 3035, '0.0.0.0/0')
if opts.cluster_type == "mesos": if opts.cluster_type == "mesos":
master_group.authorize('tcp', 38090, 38090, '0.0.0.0/0') master_group.authorize('tcp', 38090, 38090, '0.0.0.0/0')
if opts.ganglia: if opts.ganglia:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment