Giter Club home page Giter Club logo

siddhi-sdk's Introduction

Siddhi SDK


Branch Build Status
master Build Status

Getting started

Please refer the Getting Started section.

Support and Contribution

You can reachout through Slack channel, Google mail group and etc. Please refer the community contribution site for more informati

siddhi-sdk's People

Contributors

anugayan avatar dependabot[bot] avatar dilini-muthumala avatar dnwick avatar lakshanss avatar lasanthas avatar maheshika avatar mohanvive avatar niveathika avatar pcnfernando avatar raveensr avatar suhothayan avatar tishan89 avatar wso2-jenkins-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

siddhi-sdk's Issues

Siddhi application always repeated start

Description:
I try to run siddhi application with the siddhi-sdk but ,I found that the siddhi-application will always repeated start-action.
This is the command-line when I started application:
F:/studySoftware/siddhi-sdk-1.0.0\bin\siddhi.bat run E:/CompanyProj/siddhiDemo/src/com/pop.siddhi

Here is the result :

[org.wso2.extension.siddhi.io.http.source.HttpConnectorPortBindingListener] : siddhi: started HTTP server connector localhost:8081
[org.wso2.extension.siddhi.io.http.source.HttpSourceListener] : Source Listener has created for url http://localhost:8081/Api/public/test
[org.wso2.extension.siddhi.io.http.source.HttpSourceListener] : Source Listener has created for url http://localhost:8081/Api/public/test
ERROR [org.wso2.siddhi.core.stream.input.source.Source] - Error on 'TestExecutSionPlan'. Listener URL http://localhost:8081/Api/public/test already connectedError while connecting at Source 'http' at 'FooStream'.
org.wso2.siddhi.core.exception.SiddhiAppCreationException: Error on 'TestExecutSionPlan'. Listener URL http://localhost:8081/Api/public/test already connected
	at org.wso2.extension.siddhi.io.http.source.HttpConnectorRegistry.registerSourceListener(HttpConnectorRegistry.java:143)

The bug info obviously show the problem,the application will start when it is already started
Also,I use the siddhi-io-kafka,the problem exist too.the log shows that the kafka-consumer will be created again and again.
So, I guess that this may be a bug
siddhi application source code:

@App:name('testSiddhi')

--@source(type='kafka',
--        topic.list='localtopic',
--        partition.no='1',
--        threading.option='single.thread',
--        group.id="test",
--        bootstrap.servers='localhost:9092',
--        @map(type='json'))
@source(type = 'http',
        receiver.url='http://localhost:8081/Api/public/test',
        basic.auth.enabled='false',@map(type='json'))
define stream FooStream (symbol string, price float, volume long);

--
--@sink(type='kafka',
--    topic='resulttopic',
--    partition.no='0',
--    bootstrap.servers='localhost:9092',
--    @map(type='json')
--)
@sink(type='log', prefix="LOGGER")
define stream OutputStream (symbol string, price float, volume long,multiple float);
@info(name = 'query1')
from FooStream select symbol, price, volume,(price * volume) as multiple  insert into OutputStream;

By the way,I also use Stream Processor Studio to test my code.it run successfully~

Affected Product Version:
Siddhi-SDK 1.0.0
OS, DB, other environment details and versions:
Windows 10 , Idea Version: 2017.3.3 ,Siddhi-plugin-Idea 1.1.0
Steps to reproduce:

  1. Write a siddhi code ,and run it with siddhi-sdk.......
    Generally speaking~ I don't know how to describle the step to reproduce it . There are normally step to run a application with siddhi-sdk.I strictly follow the guide to build it~

Thank you ~QvQ

from <window> siddhiAppCreationException

Description:
Hello, when I was using siddhi,I found that something about the error of siddhiAppCreationException would be reported as I used the statement of from in partition.What's more,no detailed message about this error was described.

@App:name("firstrule")
@App:description("Description of the plan") 

@source(type='http',receiver.url = 'http://localhost:8080/exchange',headers = "'content-type:application/json'",@map(type='json'))
define stream exchangeStream(id int, price double, exchangeWay int, exChangeNum long);
@sink(type='log',@map(type='json'))
define stream outputStream(times string, id int, invalidCount long,price double);
define window dataCacheWindow (times string, id int, invalidCount long,price double) timeBatch(10 second);

partition with (id of exchangeStream)
begin

from exchangeStream select time:currentTime() as times, id, count(id) as invalidCount, price group by id having invalidCount > 1 insert into dataCacheWindow;
from dataCacheWindow select times, id, invalidCount, price insert into outputStream;

end

Suggested Labels:

Suggested Assignees:

Affected Product Version:

OS, DB, other environment details and versions:

Steps to reproduce:

Related Issues:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.