Show TOC

Starting the AdapterLocate this document in the navigation structure

Start the adapter either in unmanaged, managed, or cluster-managed mode. In unmanaged and cluster-managed mode, the adapter is started separately from the ESP project, and in managed mode, the adapter is started with the ESP project. In unmanaged mode, you can start the adapter from the command line or using the start command files.

Procedure


Mode Steps
Unmanaged, from the command line
  • Open a terminal window and navigate to STREAMING_HOME/adapters/framework/instances/<adapter-name>
    Note STREAMING_HOME refers to the environment variable. In Windows, enter %STREAMING_HOME%. In Unix, enter $STREAMING_HOME.
  • Enter start_adapter.bat <adapter-config-file> (Windows) or ./start_adapter.sh <adapter-config-file> (Unix)
Unmanaged, using the start command files
From the adapter directory:
  1. Start the ESP node by running start_node.bat (Windows) or start_node.sh (UNIX).
  2. Start the adapter by running start_adapter.bat (Windows) or start_adapter.sh (UNIX).
Note To use the start_node script, you must first create a cluster database and deploy a cluster to it. See the SAP Event Stream Processor: Configuration and Administration Guide for more information.
Managed
  1. Add an ATTACH ADAPTER statement in the CCL file of your project to reference the adapter. For example,
    ATTACH INPUT ADAPTER Generic_Input_Adapter__external_1 
    TYPE genericinputadapter
    to  BaseInput
    PROPERTIES configFilePath =
    'C:/SAP/ESP-5_1/adapters/framework/instances/<adapter-name>/adapter_config.xml' ;
  2. Start the node.
    cd STREAMING_HOME/cluster/examples
    STREAMING_HOME/bin/streamingclusternode --config cluster_example.cfg --node-name node1
  3. Compile CCL to create CCX.
    STREAMING_HOME/bin/streamingcompiler -i <modelname>.ccl -o <modelname>.ccx
  4. Deploy the project on the cluster.
    STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
    --username=<name> --password=<password> --add_project --workspacename=
    <workspacename> --project-name=<projectname> --ccx=<modelname>.ccx
  5. Start the deployed project on the cluster.
    STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
    --username=<name> --password=<password> --start_project --
    workspace-name=<workspacename> --project-name=<projectname>
Cluster-Managed Mode
  1. Start the node.
    cd STREAMING_HOME/cluster/examples
    STREAMING_HOME/bin/streamingclusternode --config cluster_example.cfg --node-name node1
  2. Add the adapter to the cluster.
    STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
    --username=<name> --password=<password> --add_adapter --workspacename=
    <workspacename> --adapter-type=toolkit_adapter --adapter-name=<adaptername>
     --arc=<adapter-runtime-config> --adc=<application-deployment-config>
  3. Start the project.
    streamingclusteradmin --uri=esp[s]://localhost:19011 --username=<name> --password=<password> --start_project 
    --workspace-name=<workspacename> --project-name=<projectname>
  4. Start the adapter.
    STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
    --username=<name> --password=<password> --start_adapter --
    workspace-name=<workspacename> --adapter-name=<adaptername>