fiware-cygnus

Cancel Subscription on Cygnus

徘徊边缘 提交于 2019-12-06 06:21:01
I have a subscription made to an entity's attribute to a MySql sink. The problem is that while I was testing my rest service to do a subscription if the data was not yet persisted, i made a ton of subscriptions. Now every time I do an update on the entity's attribute what happens is that the value is persisted a lot of times. Is there anyway of deleting a subscription without the subscriptionID? Yes, it is. First, you can list the existing subscriptions with the GET /v2/subscriptions operation (have a look to the draft NGSIv2 specification ). Once you have the IDs the unsubscribeContext

Automatic creation of the hive tables on cosmos

帅比萌擦擦* 提交于 2019-12-06 02:36:26
I have an Orion context broker and i use cygnus(0.6) to send data to my cosmos account. Cygnus creates correctly the txt file with the data on my cosmos, but it does not create the tables for hive. I would query my data through an hive client. Is there a configuration paramater to set in cygnus.conf to do that? How can i solve? Ignacio Martin I found myself with the same issue and found the problem. Check this: Cygnus release/0.6.0 does not create Hive extended tables 来源: https://stackoverflow.com/questions/27918545/automatic-creation-of-the-hive-tables-on-cosmos

ContextBroker subscriptions Error

寵の児 提交于 2019-12-04 15:09:57
I've updated cygnus from version 0.13 to 1.7.0 by installing NGSI following this tutorial: https://github.com/telefonicaid/fiware-cygnus/tree/master/cygnus-ngsi Error the subscription [ { "id": "59d38a92dbaa1e477aef9c00", "description": "A subscription to get info about pruebas", "status": "failed", "subject": { "entities": [ { "id": "pruebas", "type": "pruebas" } ], "condition": { "attrs": [ "pressure" ] } }, "notification": { "timesSent": 2, "lastNotification": "2017-10-03T13:03:43.00Z", "attrs": [ "temperature", "pressure" ], "attrsFormat": "legacy", "http": { "url": "http://localhost:5050

Error with Fiware-Cygnus installation via yum

泄露秘密 提交于 2019-12-02 11:23:41
问题 i am trying to install the Fireware Cygnus via yum yum install cygnus-ngsi But in the middle i got some erros. Transaction Check Error: file /usr/cygnus/init.d/cygnus from install of cygnus-common-1.2.0-0.gbd4790e.x86_64 conflicts with file from package cygnus-0.13.0-0.g0c6765f.x86_64 -...... i checked the /usr directory but there is nothing with /cygnus/init.d and so on... It is possible that there have been something before but who knows. I also tried to clean yum repo but the error still

how to compile cygnus 1.1.0 from sources and update cygnus 0.13?

只愿长相守 提交于 2019-12-02 09:58:10
问题 I follow the guide doing this steps: git clone https://github.com/telefonicaid/fiware-cygnus.git cd fiware-cygnus/cygnus-common mvn clean compile exec:exec assembly:single cp target/cygnus-common-1.1.0-jar-with-dependencies.jar /usr/cygnus/plugins.d/cygnus/libext mvn install:install-file -Dfile=/usr/cygnus/plugins.d/cygnus/libext/cygnus-common-1.1.0-jar-with-dependencies.jar -DgroupId=com.telefonica.iot -DartifactId=cygnus-common -Dversion=1.1.0 -Dpackaging=jar -DgeneratePom=false cp target

FIWARE Cygnus -> cartodb sinks.NGSISink: Persistence error, 400 Bad request

送分小仙女□ 提交于 2019-12-02 08:53:11
问题 I'm trying to connect cygnus (1.4.0_SNAPSHOT) to cartodb. I run it locally, and I use a script to send a notification to cygnus. The script runs Ok, but cygnus says: ERROR sinks.NGSISink: Persistence error (The query 'INSERT INTO jcarneroatos.x002fpeoplelocation (recvtime,fiwareservicepath,entityid,entitytype,the_geom) VALUES ('2016-10-31T19:04:00.994Z','/peoplelocation','Person:1','Person',ST_SetSRID(ST_MakePoint({"coordinates":[-4.423032856,36.721290055]), 4326))' could not be executed.

Error with Fiware-Cygnus installation via yum

耗尽温柔 提交于 2019-12-02 07:24:38
i am trying to install the Fireware Cygnus via yum yum install cygnus-ngsi But in the middle i got some erros. Transaction Check Error: file /usr/cygnus/init.d/cygnus from install of cygnus-common-1.2.0-0.gbd4790e.x86_64 conflicts with file from package cygnus-0.13.0-0.g0c6765f.x86_64 -...... i checked the /usr directory but there is nothing with /cygnus/init.d and so on... It is possible that there have been something before but who knows. I also tried to clean yum repo but the error still exists. Does anyone have an idea ? Try the following command in order to remove all Cygnus stuff: sudo

Cygnus startup error: ClassNotFoundException

最后都变了- 提交于 2019-12-02 05:59:24
问题 My environment is VM with CentOS 6.6 I followed the instruction in https://github.com/telefonicaid/fiware-cygnus/blob/master/doc/quick_start_guide.md to install Cygnus. java-1.6.0-openjdk-devel was also installed and the JAVA_HOME set. Installation went fine and it installed package cygnus.x86_64 0:0.8.2-0.g7353160 To test Cygnus I created the agent_test.conf and notification.sh files as instructed. When I start Cygnus, it outputs following stuff: [root@localhost ~]# /usr/cygnus/bin/cygnus

how to compile cygnus 1.1.0 from sources and update cygnus 0.13?

落爺英雄遲暮 提交于 2019-12-02 05:18:37
I follow the guide doing this steps: git clone https://github.com/telefonicaid/fiware-cygnus.git cd fiware-cygnus/cygnus-common mvn clean compile exec:exec assembly:single cp target/cygnus-common-1.1.0-jar-with-dependencies.jar /usr/cygnus/plugins.d/cygnus/libext mvn install:install-file -Dfile=/usr/cygnus/plugins.d/cygnus/libext/cygnus-common-1.1.0-jar-with-dependencies.jar -DgroupId=com.telefonica.iot -DartifactId=cygnus-common -Dversion=1.1.0 -Dpackaging=jar -DgeneratePom=false cp target/classes/cygnus-flume-ng /usr/cygnus/bin/cygnus-flume-ng cd ../cygnus-ngsi mvn clean compile exec:exec

Fiware - Context broker: Issue with NGSIv2 subscriptions

亡梦爱人 提交于 2019-12-02 02:02:13
I'm working with an Orion context broker version 1.2.0. I have subscribed in it two different cygnus (0.11 and 0.13) using NGSIv2, as follows: (curl 172.21.0.23:1026/v2/subscriptions -s -S --header 'Fiware-Service: prueba_015_adapter' --header 'Fiware-ServicePath: /Prueba/Planta_3' --header 'Content-Type: application/json' -d @- ) <<EOF { "description": "Cygnus subscription", "subject": { "entities": [ { "idPattern": ".*", "type": "density_algorithm" } ], "condition": { "attrs": [] } }, "notification": { "http": { "url": "http://172.21.0.33:5050/notify" }, "attrs": [] } } EOF But when the