示例#1
0
        public virtual void TestMinimumPerDirectoryFileLimit()
        {
            YarnConfiguration conf = new YarnConfiguration();

            conf.Set(YarnConfiguration.NmLocalCacheMaxFilesPerDirectory, "1");
            Exception e = null;

            NodeManager.NMContext nmContext = new NodeManager.NMContext(new NMContainerTokenSecretManager
                                                                            (conf), new NMTokenSecretManagerInNM(), null, new ApplicationACLsManager(conf),
                                                                        new NMNullStateStoreService());
            ResourceLocalizationService service = new ResourceLocalizationService(null, null,
                                                                                  null, null, nmContext);

            try
            {
                service.Init(conf);
            }
            catch (Exception e1)
            {
                e = e1;
            }
            NUnit.Framework.Assert.IsNotNull(e);
            NUnit.Framework.Assert.AreEqual(typeof(YarnRuntimeException), e.GetType());
            NUnit.Framework.Assert.AreEqual(e.Message, YarnConfiguration.NmLocalCacheMaxFilesPerDirectory
                                            + " parameter is configured with a value less than 37.");
        }
 public _ContainerManagerImpl_319(LogHandler logHandler, ResourceLocalizationService
                                  rsrcSrv, ContainersLauncher launcher, Context baseArg1, ContainerExecutor baseArg2
                                  , DeletionService baseArg3, NodeStatusUpdater baseArg4, NodeManagerMetrics baseArg5
                                  , ApplicationACLsManager baseArg6, LocalDirsHandlerService baseArg7)
     : base(baseArg1, baseArg2, baseArg3, baseArg4, baseArg5, baseArg6, baseArg7)
 {
     this.logHandler = logHandler;
     this.rsrcSrv    = rsrcSrv;
     this.launcher   = launcher;
 }