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
- 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
- Start the project:
STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
--username=<user> --password=<password> --start_project --workspace-name=
<workspacename> --project-name=<projectname>
- Navigate to
STREAMING_HOME/adapters/logfile_input.
- Edit the example.properties file or create a new
.properties file. See the Properties topic
for more information.
- 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.
- 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".