Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <summary>Shutdowns all running services.</summary>
 public override void Destroy()
 {
     Server = null;
     base.Destroy();
 }