Skip to content
Snippets Groups Projects
Commit 2a87d816 authored by Tathagata Das's avatar Tathagata Das
Browse files

Added clear property to JavaAPISuite to remove port binding errors.

parent 4be1cdc8
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,8 @@ public class JavaAPISuite implements Serializable {
public void tearDown() {
sc.stop();
sc = null;
// To avoid Akka rebinding to the same port, since it doesn't unbind immediately on shutdown
System.clearProperty("spark.master.port");
}
static class ReverseIntComparator implements Comparator<Integer>, Serializable {
......
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