fiware

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" } ],

Fi-Ware Cosmos: Name node is in safe mode

蹲街弑〆低调 提交于 2020-01-04 07:55:15
问题 I am trying to delete a folder in my Cosmos account, but I get the SafeModeException: # hadoop fs -rmr /home/<user>/input rmr: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /user/<user>/input. Name node is in safe mode 回答1: During start up Namenode loads the filesystem state from fsimage and edits log file. It then waits for datanodes to report their blocks so that it does not prematurely start replicating the blocks though enough replicas already exist in the

Subscriptions don't seem to work using dockerized fiware-orion

大城市里の小女人 提交于 2020-01-04 05:39:11
问题 I'm using Fiware-Orion ContextBroker 0.28, the dockerized version in my localhost on ubuntu 15.10 64 bits. $ curl localhost:1026/version { "orion" : { "version" : "0.28.0-next", "uptime" : "0 d, 0 h, 0 m, 6 s", "git_hash" : "067e13618c247daa4af61f82d7831f3015d9eb5d", "compile_time" : "Mon Mar 14 13:04:02 UTC 2016", "compiled_by" : "root", "compiled_in" : "838a42ae8431" } } The docker configuration I'm using is: $ cat docker-compose.yml mongo: image: mongo:2.6 command: --smallfiles --nojournal

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]:

What would be the behavior of subscriptions and notifications in an Orion Load-Balancing scenario?

China☆狼群 提交于 2020-01-02 14:04:07
问题 Based on this answer about how to scale Orion Context Broker with load balancing https://stackoverflow.com/a/33068119/3706998 what should be the behavior of subscriptions and also notifications? Witch server should it come from? What is the workflow? Could it cause some disturbe or cloned subscriptions ? 回答1: Let's consider different cases, depending on subscription cache usage. Let's consider two Orion nodes (A and B) without loss of generality, both sharing the same MongoDB instance. Using

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 extend default partition after creating an VM instance? [closed]

这一生的挚爱 提交于 2020-01-01 17:37:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I created a Centos x64 VM instance with a 12GB disk using the FI-WARE cloud. I can access it with not problem and I have started installing software. However, the default created partition /dev/vda1 is only 5GB and I have already filled it. I would like to know how to extend the partition to use the full disk.

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

Fiware Orion context broker subscriptions condition does not work

风格不统一 提交于 2019-12-30 11:13:30
问题 I am using Orion Context Broker version 1.1.0 I had the only entity in my DB: { "id"=>"Room1", "type"=>"Room", "temperature"=>{"type"=>"none", "value"=>10, "metadata"=>{}} } I did not have any subscription . Then I created 3 subscriptions : [ { "subject"=>{"entities"=>[{"id"=>"Room1", "idPattern"=>"", "type"=>""}], "condition"=>{"attrs"=>["temperature"], "expression"=>{"q"=>"temperature>10"}}} }, { "subject"=>{"entities"=>[{"id"=>"Room1", "idPattern"=>"", "type"=>""}], "condition"=>{"attrs"=>