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);
}
}
Aggregations