我正在使用GitHub的最新版本的orangeopensource / fiware-cepheus。
问题在于,根据一些现有的例子,我的Cepheus-broker并没有向Orion发送任何事件,我在" /tmp/cep-default-.json"上明确声明了这些事件。文件。它在日志中生成以下结果:
cepheus_1 | 2016-09-27 17:03:20.209 INFO 10 --- [nio-8080-exec-7] c.o.cepheus.cep.EsperEventProcessor : EventIn: Event{type='Position', values={id=Room34, key=24}}
cepheus_1 | 2016-09-27 17:03:20.840 INFO 10 --- [Timer-default-0] c.orange.cepheus.cep.EventSinkListener : EventOut: position / id:24 from insert into position select key as id from Position.win:time(10 minutes) group by key output last every 10 seconds
但成功或错误的信息不会显示出来。这可能意味着EventSinkListener.java上的两件事:
我的cep-default-.json如下
{
"host":"http://localhost:8080",
"in":[
{
"id":"position",
"type":"Position",
"attributes":[
{ "name":"key", "type":"string"}
]
}
],
"out":[
{
"id":"position",
"type":"Position",
"attributes":[
{ "name":"key", "type":"string"}
],
"brokers": [
{
"url":"http://172.17.0.3:1026",
"serviceName": "myHome",
"servicePath": "/enviroment"
}
]
}
],
"statements":[
"INSERT INTO position SELECT key as id FROM Position.win:time(10 min) GROUP BY key OUTPUT LAST EVERY 10 sec"
]
}
对此感到困惑,我尝试Example 4将代理地址(localhost:8082)更改为我的猎户座地址(http://172.17.0.3:1026)。但是在运行脚本时会打印以下内容:
UpdateContext failed for http://localhost:8082: java.net.ConnectException: Connection refused
我确认http://172.17.0.3:1026用作配置文件中的代理地址,但它仍以某种方式使用localhost:8082。
关于我做错了什么的想法?
感谢。