Skip to content

Latest commit

 

History

History
110 lines (73 loc) · 2.68 KB

eventmesh-runtime-quickstart.md

File metadata and controls

110 lines (73 loc) · 2.68 KB

Eventmesh-runtime Quick start Instruction

1 Remote Deploy

1.1 Dependencies

64bit OS, Linux/Unix is recommended;
64bit JDK 1.8+;
Gradle at least 7.0, eg 7.0.*

1.2 download sources

download source code from https://github.com/apache/incubator-eventmesh You will get EventMesh-master.zip

1.3 build sources

unzip EventMesh-master.zip
cd /*YOUR DEPLOY PATH*/EventMesh-master
gradle clean dist

You will get EventMesh_1.3.0-release.tar.gz in directory /YOUR DEPLOY PATH/EventMesh-master/build

1.4 Deployment

  • deploy eventmesh-runtime
tar -zxvf Eventmesh_1.3.0-release.tar.gz
cd conf
config your eventMesh.properties
cd ../bin
sh start.sh
tail -f ./logs/eventmesh.out
EventMeshTCPServer[port=10000] started

HTTPServer[port=10105] started

EventMeshGrpcServer[port=10205] started

2 Run Locally

2.1 dependencies

Same with 1.1, but it can be only compiled in JDK 1.8

2.2 download sources

Same with 1.2

2.3 Configuration

2.3.1 Configure plugin

2.3.1.1 Install Plugin

There are two ways to install the plugin:

  • Install from classpath: Local development can be done by declaring in the eventmesh-starter module build.gradle, for example by declaring the use of rocketmq plugin
   implementation project(":eventmesh-connector-plugin:eventmesh-connector-rocketmq")
  • Install from files: By installing the plugin into the plugin directory, EventMesh will automatically load the plugins in the plugin directory according to the conditions when EventMesh running, you can install the plugins by executing the following command.
./gradlew clean jar dist && ./gradlew installPlugin

2.3.1.2 Use Plugin

EventMesh will default load plugins installed in dist/plugin, you can change the plugin directory by -DeventMeshPluginDir=your_plugin_directory. The plugin instance to be used at runtime can be configured in the eventmesh.properties at the confPath directory. Example you can declare use rocketmq by following config.

#connector plugin, default standalone, can be rocketmq
eventMesh.connector.plugin.type=rocketmq

2.3.2 Configure VM Options

-Dlog4j.configurationFile=eventmesh-runtime/conf/log4j2.xml
-Deventmesh.log.home=eventmesh-runtime/logs
-Deventmesh.home=eventmesh-runtime/dist
-DconfPath=eventmesh-runtime/conf

ps: If you use Windows, you may need to replace the file separator to \

2.3.3 Run

running `org.apache.eventmesh.starter.StartUp` main method in eventmesh-starter module.

EventMeshTCPServer[port=10000] started

HTTPServer[port=10105] started

EventMeshGrpcServer[port=10205] started