Ejemplo n.º 1
0
 /// <exception cref="System.Exception"/>
 protected override void ServiceInit(Configuration conf)
 {
     this.limitOnPoolSize = conf.GetInt(MRJobConfig.MrAmContainerlauncherThreadCountLimit
                                        , MRJobConfig.DefaultMrAmContainerlauncherThreadCountLimit);
     Log.Info("Upper limit on the thread pool size is " + this.limitOnPoolSize);
     this.initialPoolSize = conf.GetInt(MRJobConfig.MrAmContainerlauncherThreadpoolInitialSize
                                        , MRJobConfig.DefaultMrAmContainerlauncherThreadpoolInitialSize);
     Log.Info("The thread pool initial size is " + this.initialPoolSize);
     base.ServiceInit(conf);
     cmProxy = new ContainerManagementProtocolProxy(conf);
 }
Ejemplo n.º 2
0
					 GetCMProxy(string containerMgrBindAddr, ContainerId containerId)
				{
					IPEndPoint addr = NetUtils.GetConnectAddress(this._enclosing._enclosing.server);
					string containerManagerBindAddr = addr.GetHostName() + ":" + addr.Port;
					Token token = this._enclosing.tokenSecretManager.CreateNMToken(containerId.GetApplicationAttemptId
						(), NodeId.NewInstance(addr.GetHostName(), addr.Port), "user");
					ContainerManagementProtocolProxy cmProxy = new ContainerManagementProtocolProxy(this
						._enclosing._enclosing.conf);
					ContainerManagementProtocolProxy.ContainerManagementProtocolProxyData proxy = new 
						ContainerManagementProtocolProxy.ContainerManagementProtocolProxyData(this, YarnRPC
						.Create(this._enclosing._enclosing.conf), containerManagerBindAddr, containerId, 
						token);
					return proxy;
				}