Exemplo n.º 1
0
 @BeforeClass
 public static void setUp() throws Exception {
   // Use 8 cores for resource estimation.
   RuntimeEnv.INSTANCE.setNumCores(8);
   // Set test env to control the explain level.
   RuntimeEnv.INSTANCE.setTestEnv(true);
   // Mimic the 3 node test mini-cluster.
   TUpdateMembershipRequest updateReq = new TUpdateMembershipRequest();
   updateReq.setIp_addresses(Sets.newHashSet("127.0.0.1"));
   updateReq.setHostnames(Sets.newHashSet("localhost"));
   updateReq.setNum_nodes(3);
   MembershipSnapshot.update(updateReq);
 }
Exemplo n.º 2
0
 @AfterClass
 public static void cleanUp() {
   RuntimeEnv.INSTANCE.reset();
 }
Exemplo n.º 3
0
 @BeforeClass
 public static void setUp() throws Exception {
   // Use 8 cores for resource estimation.
   RuntimeEnv.INSTANCE.setNumCores(8);
 }