Skip to main content
  • adminRemoveHost

    public AdminRemoveHostResponse adminRemoveHost(AdminRemoveHostRequest request) throws GPUdbException
    Removes a host from an existing cluster. If the host to be removed has any ranks running on it, the ranks must be removed using adminRemoveRanks or manually switched over to a new host using adminSwitchover prior to host removal. If the host to be removed has the graph server or SQL planner running on it, these must be manually switched over to a new host using adminSwitchover.

    Note: This method should be used for on-premise deployments only.

    Parameters:
    request - Request object containing the parameters for the operation.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.
  • adminRemoveHost

    public AdminRemoveHostResponse adminRemoveHost(String host, Map<String,String> options) throws GPUdbException
    Removes a host from an existing cluster. If the host to be removed has any ranks running on it, the ranks must be removed using adminRemoveRanks or manually switched over to a new host using adminSwitchover prior to host removal. If the host to be removed has the graph server or SQL planner running on it, these must be manually switched over to a new host using adminSwitchover.

    Note: This method should be used for on-premise deployments only.

    Parameters:
    host - Identifies the host this applies to. Can be the host address, or formatted as ‘hostN’ where N is the host number as specified in gpudb.conf.
    options - Optional parameters.
    • DRY_RUN: If set to TRUE, only validation checks will be performed. No host is removed. Supported values:The default value is FALSE.
    The default value is an empty Map.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.