1 Star 0 Fork 50

识文断字 / incubator-eventmesh

forked from WeBank / eventmesh 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
eventmesh-runtime-quickstart.md 2.68 KB
Copy Edit Raw Blame History

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
Java
1
https://gitee.com/luozhonghua/EventMesh.git
git@gitee.com:luozhonghua/EventMesh.git
luozhonghua
EventMesh
incubator-eventmesh
master

Search