Examples of stop()


Examples of org.apache.hadoop.service.Service.stop()

    //this triggers a callback that is caught and ignored
    Service current = currentService;
    previousService = current;
    currentService = null;
    if (current != null) {
      current.stop();
    }
  }


  /**
 
View Full Code Here

Examples of org.apache.hadoop.test.MultithreadedTestUtil.TestContext.stop()

      harness.addFailoverThread(5000);
      harness.startThreads();
      testers.startThreads();
     
      testers.waitFor(STRESS_RUNTIME);
      testers.stop();
      harness.stopThreads();
    } finally {
      System.err.println("===========================\n\n\n\n");
      harness.shutdown();
    }
View Full Code Here

Examples of org.apache.hadoop.yarn.client.YarnClient.stop()

    rm.start();

    YarnClient client = new YarnClientImpl();
    client.init(conf);
    client.start();
    client.stop();
  }
}
View Full Code Here

Examples of org.apache.hadoop.yarn.client.YarnClientImpl.stop()

    rm.start();

    YarnClient client = new YarnClientImpl();
    client.init(conf);
    client.start();
    client.stop();
  }
}
View Full Code Here

Examples of org.apache.hadoop.yarn.client.api.AHSClient.stop()

    ApplicationAttemptReport report =
        client.getApplicationAttemptReport(appAttemptId);
    Assert.assertNotNull(report);
    Assert.assertEquals(report.getApplicationAttemptId().toString(),
      expectedReports.get(0).getCurrentApplicationAttemptId().toString());
    client.stop();
  }

  @Test(timeout = 10000)
  public void testGetContainers() throws YarnException, IOException {
    Configuration conf = new Configuration();
View Full Code Here

Examples of org.apache.hadoop.yarn.client.api.TimelineClient.stop()

      }
    } catch (Exception e) {
      System.err.println("Error: " + e.getMessage());
      e.printStackTrace(System.err);
    } finally {
      client.stop();
    }
  }

  /**
   * Helper function to print out usage
View Full Code Here

Examples of org.apache.hadoop.yarn.client.api.YarnClient.stop()

        client.getApplications();
        return;
      } catch (Exception e) {
        LOG.error(e.getMessage());
      } finally {
        client.stop();
      }
    }
    fail("Client couldn't connect to the Active RM");
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.event.AsyncDispatcher.stop()

    Assert.assertEquals("committer did not commit",
        2, jeh.numCommitCompletedEvents);
    verify(committer, times(2)).commitJob(any(JobContext.class));

    ceh.stop();
    dispatcher.stop();
  }

  private static class TestingRMHeartbeatHandler
      implements RMHeartbeatHandler {
    private long lastHeartbeatTime = 0;
View Full Code Here

Examples of org.apache.hadoop.yarn.event.DrainDispatcher.stop()

    //Verify abortJob is called once and the job failed
    Mockito.verify(committer, Mockito.timeout(2000).times(1))
      .abortJob((JobContext) Mockito.any(), (State) Mockito.any());
    assertJobState(job, JobStateInternal.FAILED);

    dispatcher.stop();
  }

  @Test(timeout=20000)
  public void testKilledDuringFailAbort() throws Exception {
    Configuration conf = new Configuration();
View Full Code Here

Examples of org.apache.hadoop.yarn.event.InlineDispatcher.stop()

    //Verify abortJob is called once and the job failed
    Mockito.verify(committer, Mockito.timeout(2000).times(1))
      .abortJob((JobContext) Mockito.any(), (State) Mockito.any());
    assertJobState(job, JobStateInternal.FAILED);

    dispatcher.stop();
  }

  @Test (timeout=10000)
  public void testFailAbortDoesntHang() throws IOException {
    Configuration conf = new Configuration();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.