Updated on 2024-11-29 GMT+08:00

Configuring the Access Channel Protocol

Scenario

The value of the yarn.http.policy parameter must be consistent on both the server and clients. Web UIs on clients will be garbled if an inconsistency exists, for example, the parameter value is HTTPS_ONLY on the server but it is left unspecified on a client (the parameter value HTTP_ONLY is applied to the client by default). Set the yarn.http.policy parameters on the clients and server to prevent garbled characters from being displayed on the clients.

Procedure

  1. On Manager, choose Cluster > Name of the desired cluster > Services > Yarn > Configurations. On the displayed page, select All Configurations and enter yarn.http.policy.

    • In security mode, set this parameter to HTTPS_ONLY.
    • In normal mode, set this parameter to HTTP_ONLY.

  2. Log in to the node where the client is installed as the client installation user.
  3. Run the following command to switch to the client installation directory:

    cd /opt/client

  4. Run the following command to edit the yarn-site.xml file:

    vi Yarn/config/yarn-site.xml

    Change the value of yarn.http.policy.

    In security mode, set this parameter to HTTPS_ONLY.

    In normal mode, set this parameter to HTTP_ONLY.

  5. Run the :wq command to save execution.
  6. Restart the client for the settings to take effect.