Package org.apache.hadoop.util

Examples of org.apache.hadoop.util.CoronaFailureEventInjector


      vargs.add(this.tracker.localHostname);
      vargs.add(Integer.toString(this.tracker.httpPort));
     
      // inject the job tracker failure event if needed
      if (this.tracker instanceof CoronaTaskTracker) {
        CoronaFailureEventInjector jtEventInjector =
            ((CoronaTaskTracker)this.tracker).jtFailureEventInjector;
        if (jtEventInjector != null) {
          LOG.info("Injecting failure event to RJT");
          CoronaFailureEvent failureEvent = jtEventInjector.pollFailureEvent();
          if (failureEvent != null) {
            LOG.info("Injecting failure event " + failureEvent.toString());
            vargs.add(failureEvent.toString());
          }
        }
View Full Code Here


        failure = String.format("%d:%d", when, how);
        LOG.info("gen a random failure event: " + failure);
      }
     
      CoronaFailureEvent failureEvent = CoronaFailureEvent.fromString(failure);
      CoronaFailureEventInjector injector =
          new CoronaFailureEventInjector();
      injector.injectFailureEvent(failureEvent);
     
      return injector;
    }
   
    return null;
View Full Code Here

TOP

Related Classes of org.apache.hadoop.util.CoronaFailureEventInjector

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.