Stopping the File/Hadoop JSON Adapter

Stop the File/Hadoop JSON adapter either in unmanaged or managed mode. In unmanaged mode, the adapter is stopped separately from the ESP project, and in managed mode, the adapter is stopped with the ESP project. Stop the adapter either from the command line or using the stop command files when running in unmanaged mode.

Mode Steps
Unmanaged, from the command line

Open a terminal window and enter:

Windows:
  • For the File/Hadoop JSON Input adapter: cd %ESP_HOME%\adapters\framework\instances\file_json_input
  • For the File/Hadoop JSON Output adapter: cd %ESP_HOME%\adapters\framework\instances\file_json_output
  • stop_adapter.bat <adapter configuration file name>
UNIX:
  • For the File/Hadoop JSON Input adapter: cd $ESP_HOME/adapters/framework/instances/file_json_input
  • For the File/Hadoop JSON Output adapter: cd $ESP_HOME/adapters/framework/instances/file_json_output
  • ./stop_adapter.sh <adapter configuration file name>
Unmanaged, using the stop command files
From the adapter directory (see directories above):
  1. Stop the ESP node by running stop_node.bat or stop_node.sh in the adapter instance folder.
  2. Stop the adapter by running stop_adapter.bat or stop_adapter.sh
Managed
Prerequisite: The adapter is attached to a project using the ATTACH ADAPTER statement.
  1. Stop the project to which the adapter is attached.
    Windows:
    cd %ESP_HOME%\cluster\nodes\<node_name> esp_cluster_admin
    --uri=esp[s]://<host>:19011 --username=<name> --password=<pass> --
     stop project <workspace-name>/<project-name>
    UNIX:
    cd $ESP_HOME/cluster/nodes/<node_name> esp_cluster_admin
    --uri=esp[s]://<host>:19011 --username=<name> --password=<pass> -- stop project <workspace-name>/<project-name>

    You can also stop the adapter by issuing the stop adapter command from the esp_client tool.