当WSO2CEP部署带有触发器的执行计划到Storm时的例外情况

时间:2016-06-27 12:05:53

标签: apache-storm wso2cep siddhi

我们在集群分布式模式和Apache Storm中有WSO2CEP 4.1.0。当流的执行计划触发时,它不能作为拓扑部署到Storm。当我编辑执行计划并按“添加执行计划”按钮时,CEP会给我一个异常的弹出窗口

Failed to add execution plan, Exception: Invalid distributed query specified, Error while converting to XML storm query plan. Execution plan: Some-plan Tenant: -1234. No corresponding stream imported for Siddhi stream : SomeTrigger

以下是可以重现这种情况的最简单的执行计划。

@Plan:name('Some-plan')
@Plan:description('description')
@Plan:statistics('true')
@Plan:trace('true')

@Export('OutputStream:1.0.0')
define stream outputStream (triggered_time long, desc string);

@IndexBy('entity_id')
define table MemoryTable (  entity_id string);

define trigger SomeTrigger at '0 0 0 * * ? *';

@query(name='trigger-query1')
from SomeTrigger
    delete MemoryTable
    on triggered_time  > 0
;

@query(name='trigger-query2')
from SomeTrigger
select
    triggered_time
    , str:concat('Time: ', time:dateFormat(triggered_time, 'yyyy-MM-dd HH:mm:ss')) as desc
insert into outputStream;

如何将带有触发器的siddhi执行计划部署到Apache Storm?

0 个答案:

没有答案