/// <summary> /// Initializes the HttpFSServer server, loads configuration and required /// services. /// </summary> /// <exception cref="Org.Apache.Hadoop.Lib.Server.ServerException"> /// thrown if HttpFSServer server could not be /// initialized. /// </exception> public override void Init() { if (Server != null) { throw new RuntimeException("HttpFSServer server already initialized"); } Server = this; base.Init(); adminGroup = GetConfig().Get(GetPrefixedName(ConfAdminGroup), "admin"); Log.Info("Connects to Namenode [{}]", Get().Get <FileSystemAccess>().GetFileSystemConfiguration ().Get(CommonConfigurationKeysPublic.FsDefaultNameKey)); }
/// <summary>Shutdowns all running services.</summary> public override void Destroy() { Server = null; base.Destroy(); }