Package com.alibaba.wasp

Examples of com.alibaba.wasp.LocalWaspCluster


          throw new IOException(errorMsg);
        }
        conf.set(FConstants.ZOOKEEPER_CLIENT_PORT, Integer.toString(clientPort));
        // Need to have the zk cluster shutdown when master is shutdown.
        // Run a subclass that does the zk cluster shutdown on its way out.
        LocalWaspCluster cluster = new LocalWaspCluster(conf, 1, 1,
            LocalFMaster.class, FServer.class);
        ((LocalFMaster) cluster.getMaster(0)).setZKCluster(zooKeeperCluster);
        cluster.startup();
        waitOnMasterThreads(cluster);
      } else {
        FMaster master = FMaster.constructMaster(masterClass, conf);
        if (master.isStopped()) {
          LOG.info("Won't bring the Master up as a shutdown is requested");
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.LocalWaspCluster

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.