2017-06-08 39 views
0

在FiWARE CEP中啓動LiveDemo項目實例時啓動時發生錯誤。它無法初始化輸出適配器。在FiWARE中啓動LiveDemo項目實例時無法初始化輸出適配器CEP

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 

回答

0

請更正消費者中「文件名」字段下提及的路徑。 請按照以下步驟刪除上述的錯誤: 在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"}

相關問題