Updated on 2022-02-22 GMT+08:00

Stopping DIS Agent

Stopping DIS Agent on a Linux Server

  1. Start PuTTY and log in to the server on which logs reside.
  2. Run the following command to navigate to the DIS Agent installation directory:

    cd /opt/dis-agent-X.X.X/

  3. Run the following script to stop the DIS Agent:

    bash bin/stop-dis-agent.sh

    Run the bash script to stop the DIS Agent. Running another script, such as sh or ./ may fail to stop the DIS Agent.

    If information similar to the following appears, the DIS Agent is stopping. xxxxx indicates the process ID.

    Stopping Agent [xxxxx].....

    If information similar to the following appears, the DIS Agent has stopped:

    Stopping Agent [xxxxx]............. Successfully.

    To forcibly stop the DIS Agent process, perform the following steps:

    1. Run the command to obtain the DIS Agent process ID (PID):

      ps -ef | grep dis-agent | grep -v grep

      The second field in the command output indicates the PID.

    2. Run the following command to forcibly stop the DIS Agent process:

      kill -9 PID

Stopping DIS Agent on a Windows Server

  1. Press Ctrl+C on the CMD terminal. The following information appears:

    [INFO ] (Agent STOPPING) com.bigdata.dis.agent.Agent Agent: Shutting down...

  2. When the following information appears, it indicates that the DIS Agent has stopped. Enter Y and then press Enter to exit.

    Terminate batch job (Y/N)?