fiware-cygnus

Setting up Cygnus-PostgreSQL for historical data persistance

拟墨画扇 提交于 2020-01-25 08:01:05
问题 Now that I have a real device (LWM2M -using wakaama implementation) running and sending data to Orion (I can confirm from server log, 'Observers created successfully' ), I want to proceed with historical data storage. I am not sure how to start. Using docker-compose file to start all services. I already have postgres image pulled and running. Would like to use it for persistence. I guess I need to create the db schema to use for storage, any link to cygnus-postgres installation/persistence

Cygnus release/0.6.0 does not create Hive extended tables

随声附和 提交于 2020-01-16 13:18:48
问题 I'm running a cygnus instance in a Fi-Lab vm. I've compiled it from branch release/0.6.0. Everything is working except that Hive extended tables for context updates are not created. Cygnus is succesfully receiving updates from Orion, they are forwarded to Cosmos and the HDFS files are created. The cygnus log says Creating Hive external table=... and does not raise any error. Then, if I log into the cosmos head node, I can see the HDFS files created, but if I use the Hive console, the tables

how to provision a datastore in ckan for connecting cygnus in column persistance mode?

情到浓时终转凉″ 提交于 2020-01-04 09:23:35
问题 I am having the same problem as here and try to solve it, but I do not know how to properly format the datastore so cygnus will not throw the persistence error. My orion suscription is this one: (curl localhost:1026/v1/subscribeContext -s -S --header 'Content-Type: application/json' \ --header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF { "entities": [ { "type": "Event", "isPattern": "false", "id": "es-leon-0" }, { "type": "Event", "isPattern": "false", "id": "es-leon-1" } ],

Fiware: can not start cygnus as service

99封情书 提交于 2020-01-04 04:08:14
问题 I installed cygnus using RPMs on fiware image CentOS-7-x64 and I can't start it as a service, Here is my logs: [centos@cygnus-mongo conf]$ sudo service cygnus start Starting cygnus (via systemctl): Job for cygnus.service failed. See 'systemctl status cygnus.service' and 'journalctl -xn' for details. [FAILED] [centos@cygnus-mongo conf]$ sudo journalctl -xn -- Logs begin at mer. 2015-10-07 07:48:29 UTC, end at mer. 2015-10-07 10:02:35 UTC. -- oct. 07 10:02:20 cygnus-mongo.novalocal su[5700]:

Cancel Subscription on Cygnus

∥☆過路亽.° 提交于 2020-01-02 09:52:33
问题 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? 回答1: Yes, it is. First, you can list the existing subscriptions with the GET /v2/subscriptions

Cancel Subscription on Cygnus

戏子无情 提交于 2020-01-02 09:52:12
问题 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? 回答1: Yes, it is. First, you can list the existing subscriptions with the GET /v2/subscriptions

How to store an image from context broker?

ぐ巨炮叔叔 提交于 2019-12-31 03:19:12
问题 I want to send images from various android to context broker, I am not sure how I would go about decoding the image from string format and then storing it to the file system and database respectively. Would I have to develop my own python script or could Cygnus help me out here? 回答1: Although there are several approaches to transcode a binary file (such an image) into text (e.g. Base64) it doesn't use to be a good idea in Orion Context Broker. Big static files are better placed in an Object

How to configure Cygnus in relation to Orion and Cosmos

孤人 提交于 2019-12-24 05:28:10
问题 We have Orion, Cygnus, and Cosmos installed, and are trying to get the connections between them working: via the broker Orion messages are to be forwarded to Cygnus, which in turn is to write those to the Cosmos database. We know that Orion is working properly (it has been tested and used before), and have tested Cygnus with the test python script (as explained in https://github.com/telefonicaid/fiware-cygnus/blob/master/doc/quick_start_guide.md). Currently we are trying to configure Cygnus

Warning on Cygnus avoids data persistence on Cosmos

拈花ヽ惹草 提交于 2019-12-24 04:53:11
问题 This is a cygnus agent log: 16 Sep 2015 12:30:19,820 INFO [521330370@qtp-1739580287-1] (com.telefonica.iot.cygnus.handlers.OrionRestHandler.getEvents:236) - Received data (<notifyContextRequest><subscriptionId>55f932e6c06c4173451bbe1c</subscriptionId><originator>localhost</originator>...<contextAttribute><name>utctime</name><type>string</type><contextValue>2015-9-16 9:37:52</contextValue></contextAttribute></contextAttributeList></contextElement><statusCode><code>200</code><reasonPhrase>OK<

Why cygnus crashes when using ngsiv2 in orion?

我怕爱的太早我们不能终老 提交于 2019-12-24 01:27:10
问题 Recently I start working with NGSIV2 but cygnus start crashing. May I have something not cofigurated right? With the v1 works flawless. My startup trace with the error is in here: http://pastebin.com/nP2am8GW The error said: Error appending event to channel. Channel might be full. Consider increasing the channel capacity or make sure the sinks perform faster. time=2016-05-09T05:58:28.866CDT | lvl=WARN | trans=1462791485-602-0000000000 | srv=papel-club | subsrv=events | function=intercept |