Search in sources :

Example 1 with LocalCluster

use of com.tencent.angel.localcluster.LocalCluster in project angel by Tencent.

the class AngelLocalClient method startPSServer.

@Override
public void startPSServer() throws AngelException {
    try {
        setUser();
        setLocalAddr();
        conf.set("hadoop.http.filter.initializers", "org.apache.hadoop.yarn.server.webproxy.amfilter.AmFilterInitializer");
        setInputDirectory();
        setOutputDirectory();
        initLocalClusterContext();
        cluster = new LocalCluster(conf, appId);
        cluster.start();
        updateMaster(Integer.MAX_VALUE);
        waitForAllPS(conf.getInt(AngelConf.ANGEL_PS_NUMBER, AngelConf.DEFAULT_ANGEL_PS_NUMBER));
        LOG.info("start ps success");
    } catch (Exception x) {
        LOG.error("start application failed.", x);
        throw new AngelException(x);
    }
}
Also used : AngelException(com.tencent.angel.exception.AngelException) LocalCluster(com.tencent.angel.localcluster.LocalCluster) ServiceException(com.google.protobuf.ServiceException) AngelException(com.tencent.angel.exception.AngelException)

Aggregations

ServiceException (com.google.protobuf.ServiceException)1 AngelException (com.tencent.angel.exception.AngelException)1 LocalCluster (com.tencent.angel.localcluster.LocalCluster)1