Esempio n. 1
0
        private void InitDummyNodeLabelsManager()
        {
            Configuration conf = new YarnConfiguration();

            conf.SetBoolean(YarnConfiguration.NodeLabelsEnabled, true);
            dummyNodeLabelsManager = new DummyCommonNodeLabelsManager();
            dummyNodeLabelsManager.Init(conf);
        }
Esempio n. 2
0
 internal static CommonNodeLabelsManager GetNodeLabelManagerInstance(Configuration
                                                                     conf)
 {
     lock (typeof(ClusterCLI))
     {
         if (localNodeLabelsManager == null)
         {
             localNodeLabelsManager = new CommonNodeLabelsManager();
             localNodeLabelsManager.Init(conf);
             localNodeLabelsManager.Start();
         }
         return(localNodeLabelsManager);
     }
 }