在 FiWARE CEP 中启动 LiveDemo 项目实例时无法初始化输出适配器

Failed to initialize output adapters while starting LiveDemo project's instance in FiWARE CEP

在FiWARE CEP 中启动LiveDemo 项目实例时发生错误。它无法初始化输出适配器。

INFO [Thread-27] com.ibm.hrl.proton.server.adapter.OutputServer.run Proton output server started, listening on output port: 3302
WARNING [pool-11-thread-1] com.ibm.hrl.proton.server.adapter.AbstractServer.startAdapters initializeAdapters: failed to initialize adapter Output adapter for consumer: SimpleFile, reason: No such file or directory
WARNING [pool-11-thread-1] com.ibm.hrl.proton.server.adapter.AbstractServer.startAdapters initializeAdapters: failed to initialize adapter Output adapter for consumer: File, reason: No such file or directory
INFO [Thread-26] com.ibm.hrl.proton.server.adapter.InputServer.run Proton server Started, listening on port: 3002

请更正消费者中 "filename" 字段下提到的路径。 请按照以下步骤删除上述错误: 在 Fiware PROTON GUI 上:

1. click on the Consumers in the resource navigation area.
2. double click on "File" consumer
3. update value of "filename" field in the Editing area(in the center).
   note: make sure the path is absolute not relative as tomcat's directory location can different in various linux falvours.
and make sure the all the directories mentioned in the path exists(file will be created automatically while initializing the adapter).
4. do the same for "SimpleFile" consumer.
5. click on "Save and Export" button at the top.
6. click on "Export to external repository" in the pop-up window.
7. Input destination and click ok.

完成上述步骤后,停止实例并通过 REST API 调用再次启动它。

停止实例:

PUT //localhost:8080/ProtonOnWebServerAdmin/resources/instances/ProtonOnWebServer {"action":"ChangeState","state":"stop"}

启动实例:

PUT //localhost:8080/ProtonOnWebServerAdmin/resources/instances/ProtonOnWebServer {"action":"ChangeState","state":"start"}