public static void Main(string[] args) { Sharpen.Thread.SetDefaultUncaughtExceptionHandler(new YarnUncaughtExceptionHandler ()); StringUtils.StartupShutdownMessage(typeof(Org.Apache.Hadoop.Yarn.Server.Sharedcachemanager.SharedCacheManager ), args, Log); try { Configuration conf = new YarnConfiguration(); Org.Apache.Hadoop.Yarn.Server.Sharedcachemanager.SharedCacheManager sharedCacheManager = new Org.Apache.Hadoop.Yarn.Server.Sharedcachemanager.SharedCacheManager(); ShutdownHookManager.Get().AddShutdownHook(new CompositeService.CompositeServiceShutdownHook (sharedCacheManager), ShutdownHookPriority); sharedCacheManager.Init(conf); sharedCacheManager.Start(); } catch (Exception t) { Log.Fatal("Error starting SharedCacheManager", t); System.Environment.Exit(-1); } }
private SCMWebServer CreateSCMWebServer(Org.Apache.Hadoop.Yarn.Server.Sharedcachemanager.SharedCacheManager scm) { return(new SCMWebServer(scm)); }