Package org.apache.hama.bsp

Examples of org.apache.hama.bsp.TaskID


   */
  public void testTextSpillingQueue() throws Exception {

    String msg = "Testing the spillage of spilling buffer";
    Text text = new Text(msg);
    TaskAttemptID id = new TaskAttemptID(new TaskID("123", 1, 2), 0);
    SpillingQueue<Text> queue = new SpillingQueue<Text>();
    Configuration conf = new HamaConfiguration();

    String fileName = System.getProperty("java.io.tmpdir") + File.separatorChar
        + new BigInteger(128, new SecureRandom()).toString(32);
View Full Code Here


   */
  public void testObjectWritableSpillingQueue() throws Exception {

    String msg = "Testing the spillage of spilling buffer";
    Text text = new Text(msg);
    TaskAttemptID id = new TaskAttemptID(new TaskID("123", 1, 2), 0);
    SpillingQueue<Text> queue = new SpillingQueue<Text>();
    Configuration conf = new HamaConfiguration();

    String fileName = System.getProperty("java.io.tmpdir") + File.separatorChar
        + new BigInteger(128, new SecureRandom()).toString(32);
View Full Code Here

    final PeerSyncClient syncClient = SyncServiceFactory
        .getPeerSyncClient(conf);
    assertTrue(syncClient instanceof ZooKeeperSyncClientImpl);
    BSPJobID jobId = new BSPJobID("abc", 1);
    TaskAttemptID taskId = new TaskAttemptID(new TaskID(jobId, 1), 1);
    syncClient.init(conf, jobId, taskId);

    Runtime.getRuntime().addShutdownHook(new Thread() {
      @Override
      public void run() {
View Full Code Here

    }
    queue.close();
  }

  public DiskQueue<IntWritable> getQueue() {
    TaskAttemptID id = new TaskAttemptID(new TaskID("123", 1, 2), 0);
    DiskQueue<IntWritable> queue = new DiskQueue<IntWritable>();
    // normally this is injected via reflection
    queue.setConf(conf);
    queue.init(conf, id);
    return queue;
View Full Code Here

    final PeerSyncClient syncClient = SyncServiceFactory
        .getPeerSyncClient(conf);
    assertTrue(syncClient instanceof ZooKeeperSyncClientImpl);
    BSPJobID jobId = new BSPJobID("abc", 1);
    TaskAttemptID taskId = new TaskAttemptID(new TaskID(jobId, 1), 1);
    syncClient.init(conf, jobId, taskId);

    Runtime.getRuntime().addShutdownHook(new Thread() {
      @Override
      public void run() {
View Full Code Here

    }
    queue.close();
  }

  public DiskQueue<IntWritable> getQueue() {
    TaskAttemptID id = new TaskAttemptID(new TaskID("123", 1, 2), 0);
    DiskQueue<IntWritable> queue = new DiskQueue<IntWritable>();
    // normally this is injected via reflection
    queue.setConf(conf);
    queue.init(conf, id);
    return queue;
View Full Code Here

   */
  public void testTextSpillingQueue() throws Exception {

    String msg = "Testing the spillage of spilling buffer";
    Text text = new Text(msg);
    TaskAttemptID id = new TaskAttemptID(new TaskID("123", 1, 2), 0);
    SpillingQueue<Text> queue = new SpillingQueue<Text>();
    Configuration conf = new HamaConfiguration();

    String fileName = System.getProperty("java.io.tmpdir") + File.separatorChar
        + new BigInteger(128, new SecureRandom()).toString(32);
View Full Code Here

   */
  public void testObjectWritableSpillingQueue() throws Exception {

    String msg = "Testing the spillage of spilling buffer";
    Text text = new Text(msg);
    TaskAttemptID id = new TaskAttemptID(new TaskID("123", 1, 2), 0);
    SpillingQueue<Text> queue = new SpillingQueue<Text>();
    Configuration conf = new HamaConfiguration();

    String fileName = System.getProperty("java.io.tmpdir") + File.separatorChar
        + new BigInteger(128, new SecureRandom()).toString(32);
View Full Code Here

    }
    queue.close();
  }

  public DiskQueue<IntWritable> getQueue() {
    TaskAttemptID id = new TaskAttemptID(new TaskID("123", 1, 2), 0);
    DiskQueue<IntWritable> queue = new DiskQueue<IntWritable>();
    // normally this is injected via reflection
    queue.setConf(conf);
    queue.init(conf, id);
    return queue;
View Full Code Here

TOP

Related Classes of org.apache.hama.bsp.TaskID

Copyright © 2018 www.massapicom. 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.