Show TOC

Starting the AdapterLocate this document in the navigation structure

Set the CLASSPATH environment variable and start the adapter from the command line.

Prerequisites

  • Set environment variables for ESP. For more information, see Updating Environment Variables in the SAP Event Stream Processor: Installation Guide.
  • Ensure that the ESP cluster database and node on which your project runs are started. See Starting a Cluster Database in the SAP Event Stream Processor: Configuration and Administration Guide for detailed instructions.

Procedure

  1. Deploy the project on the cluster:
    STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
    --username=<user> --password=<password> --add_project --workspace-name=
    <workspacename> --project-name=<projectname> --ccx=<modelname>.ccx
  2. Start the project:
    STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
    --username=<user> --password=<password> --start_project --workspace-name=
    <workspacename> --project-name=<projectname>
  3. Navigate to STREAMING_HOME/adapters/logfile_input.
  4. Edit the example.properties file or create a new .properties file. See the Properties topic for more information.
  5. To set the CP environment variable (%CP% in Windows, $CP in Unix), run the command createClasspath.bat for Windows or source createClasspath.sh for UNIX.
  6. Open a command line and enter: java -cp CP -Dproperties=<properties-file> com.sybase.esp.adapter.logFileInput.Main.

    There is no space between the "D" and the word "properties".