You can start, stop, and remove an adapter from a cluster using
the SAP ESP Cockpit, SAP Event Stream Processor
Studio, or the streamingclusteradmin
command line utility.
Context
To manage an adapter using a cluster, add the adapter to the cluster using the
streamingclusteradmin command line utility. You can only do
this for adapters developed using the adapter toolkit (either preconfigured or
custom), so ensure that you have a toolkit adapter ready to deploy. For a complete
list of adapters developed using the adapter toolkit, see Preconfigured
Adapters Included with the Adapter Toolkit in the
SAP Event Stream Processor: Building Custom Adapters
guide.
Procedure
- Add the adapter to the cluster by executing:
streamingclusteradmin --uri=esp[s]://localhost:19011 --username=<username> --password=<password> --add_adapter --workspace-name=<workspace-name> --adapter-name=<adapter-name> --adapter-type=toolkit_adapter --arc=/config/adapter_config.xml
Note If you omit the password parameter when you call the
streamingclusteradmin tool,
Event Stream Processor prompts you for the password and hides
it as you type, which improves security.
- (Optional) Start the adapter by executing:
streamingclusteradmin --uri=esp[s]://localhost:19011 --username=<username> --password=<password> --start_adapter --workspace-name=<workspace-name> --adapter-name=<adapter-name>