Class ContainerShellWebSocket

java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.webapp.ContainerShellWebSocket

@LimitedPrivate({"HDFS","MapReduce","YARN"}) @Unstable @WebSocket public class ContainerShellWebSocket extends Object
Web socket for establishing interactive command shell connection through Node Manage to container executor.
  • Constructor Details

    • ContainerShellWebSocket

      public ContainerShellWebSocket()
  • Method Details

    • init

      public static void init(Context nm)
    • onText

      @OnWebSocketMessage public void onText(org.eclipse.jetty.websocket.api.Session session, String message) throws IOException
      Throws:
      IOException
    • onConnect

      @OnWebSocketConnect public void onConnect(org.eclipse.jetty.websocket.api.Session session)
    • onClose

      @OnWebSocketClose public void onClose(org.eclipse.jetty.websocket.api.Session session, int status, String reason)
    • checkAuthorization

      protected boolean checkAuthorization(org.eclipse.jetty.websocket.api.Session session, Container container) throws IOException
      Check if user is authorized to access container.
      Parameters:
      session - websocket session
      container - instance of container to access
      Returns:
      true if user is allowed to access container.
      Throws:
      IOException