fiware-cygnus | persisting context data sources | Database library
kandi X-RAY | fiware-cygnus Summary
kandi X-RAY | fiware-cygnus Summary
A connector in charge of persisting context data sources into other third-party databases and storage systems, creating a historical view of the context
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the events for the given request .
- This method maps an entity to a new one .
- Entry point .
- Reads a batch of events and returns them .
- Handle request .
- Persists a new distance event .
- Deletes loggers .
- Request HTTP response .
- Creates JSON response from http response .
- Configure the sink .
fiware-cygnus Key Features
fiware-cygnus Examples and Code Snippets
Community Discussions
Trending Discussions on fiware-cygnus
QUESTION
I have Orion, MongoDB and Cygnus-ngsi installed with docker-compose on an Ubuntu 18.04 machine. The images I used were: fiware/orion:latest, fiware/cygnus-ngsi:latest and mongo:3.6.
They were installed with the command: docker-compose -f reflexwaterDocker.yaml up
I had no installation problems. All containers are UP. Orion saving to MongoDB. The Cygnus API working.
I created a subscription to an Orion entity, all ok. But when I update the entity, the orion performs on the mongo, but Cygnus does not persist the historical data.
The agent.conf file in opt/apache-flume/conf
is configured correctly. I am using the default setup for the docker-compose installation.
I followed the process described in: https://github.com/telefonicaid/fiware-cygnus/blob/master/doc/cygnus-ngsi/installation_and_administration_guide/install_with_docker.md
All ports are correct and have been tested.
I've used Cygnus with Orion and MongoDB manually installing, and I had no problem. But also, there I set up an agent_conf and a cygnus_instance.conf. Using the docker, following the step by step in the documentation it is not necessary to configure cygnus_instance.conf. It doesn't even exist inside the opt/apache-flume/conf
folder.
Does anyone have any idea what might be happening to Cygnus not persisting the data? Or have you been through this and managed to solve it?
My docker-compose looks like this for Cygnus-ngsi:
...ANSWER
Answered 2020-May-13 at 12:12Taking into account this
I've used Cygnus with Orion and MongoDB manually installing, and I had no problem
I'd say that the problem is somehow related to the docker deployment. Moreover, looking to the trace:
Exception authenticating MongoCredential
maybe the CYGNUS_MONGO_USER=""
and CYGNUS_MONGO_PASS=""
env vars are not correctly processed (by entrypoint.sh or similar script, I guess) and this is causing the problem.
In order to debug this, I'd suggest you to compare the Cygnus agents.conf/cygnus_instance.conf files in working case (manually installing) and in the failing case (docker). Maybe the differences could provide some insight on the problem. In the case of docker, maybe the files aren't at opt/apache-flume/conf
but they should be in someplace (either internally in the container or mounted as volume in the hosting system).
Another related question: the Cygnus version you make to work manually is exactly the same you one in the docker case? Try to ensure you are using exactly the same software.
QUESTION
Running several docker containers including postgres
database remotely.
ANSWER
Answered 2019-Jul-01 at 17:17Assuming that you have exposed the ports of your container to the underlying host, then the application is accessible via the IP address of the underlying host.
The 172.19.0.3
IP address is an IP address that exists inside the Docker network on the host: it's not available externally. If your remote host has IP 1.2.3.4
and your application port has been exposed, e.g. in your compose file you have something like:
QUESTION
Working with grafana using docker-compose
. I want to add the Plotly plugin so I add to my grafana container service defition, thus:
ANSWER
Answered 2019-Jun-18 at 17:31According to the docs, your environment should look like this:
QUESTION
I have a relatively simple switch that sends data whenever the button is pressed (either 1 or 0). The message protocol it uses is MQTT. It is connected to Mosquitto via Wi-Fi and successfully sends data to it (i am able to see it using mosquitto_sub -v -t "#"
. However, I would like to be able to send this data to Orion Context Broker and then receive it using REST commands and store it using Fiware-Cygnus afterwards.
the topic that sensor publishes messages to is tt/sergo/demo/sw
the name of the sensor presented in mosquitto_sub when sensor is first connected: DMS-A01
the IP - address of sensor: 192.168.0.108
I have installed Iot-Agent UL, which is working, but I don't know how to make it listen to the specific sensor that sends data to Mosquitto. I read the manuals but either missed something or did not find the solution to my problem. I tried using the manual below, but could not apply it to my problem.
Thank you in advance, stack overflow community.
...ANSWER
Answered 2018-Jun-20 at 09:19Before sending measures you need to do a provision operation for the device using the IOTA-UL API. That provision operation "creates" the device in the IOTA-UL and map it with the corresponding entity at CB. Then, you can start sending measures using MQTT.
You can have a look to this piece of documentation for more detail.
QUESTION
Has anyone experienced this error before when trying to connect to hive.
Sample code used (https://github.com/telefonicaid/fiware-cygnus/blob/master/cygnus-ngsi/resources/hiveclients/python/hiveserver2-client.py):
...ANSWER
Answered 2017-Mar-01 at 08:52can you post your piece of code ? This looks like some auth mechanism or credentials sent are not Valid.
authMechanism= can be "PLAIN" or "KERBEROS"
as per your setup .
QUESTION
I have questions regarding docker installation of fiware-cygnus:
What docker image should I use, I found at least 3 of them(not sure if this affect installation) I have agent.conf on my host, and I was not able to map it to the container. So it could be me but is this location where I should map agent.conf? I had no problems to map my own grouping_rules.conf but agent.conf I was not able to do it, I run docker images/containers many times never had an issue like this.
...ANSWER
Answered 2018-Sep-20 at 11:21Not fully sure, but of the 3 I think the one you need to work with Orion Context Broker (i.e. subscribing to Orion so it sends notifications to Cygnus) is cygnus-ngsi
.
With regards to configuration, I think that the approach is not editing .conf files inside the docker container on execution. You should inject configuration as environment variables. The ENV marks in the Dockerfile mean configurabe parameters.
I guess that both docker run
and docker-compose should allow to set environment variables to the container, but that's a docker generic question not directly related with this question. There should be a lot of literature out there about this :)
QUESTION
Starting from my own installation of the following Fiware components: Orion Context Broker, CYGNUS NGSI, Fiware STH and MongoDB, after a while I got the following result consuming a stats service which I found inside CYGNUS management API.
Service: GET http://:/v1/stats
Result:
...ANSWER
Answered 2018-May-21 at 10:49You don't have to be worried about the num_takes_failed if you see that the number of processed_events is the same than the number of persisted_events. The numb_takes_filed is the result of the subtraction between the values of the flume methods EventTakeAttemptCount and EventTakeSuccessCount where the EventTakeAttemptCount is the total number of times the sink(s) attempted to read the events from the channel. This doesn't mean that the events were returned each time since sinks might poll and the channel might not have any data, On the other hand,EventTakesuccessCount is the total number of events that were successfully taken by the sink(s).
Moreover, if you want to know more about how the events are processed by the channels and sinks, you can run Cygnus on debug mode and see the log output for ensuring that every event is processed and persisted in the correct way
QUESTION
Hello I followed the quickstart guide for cygnus(http://fiware-cygnus.readthedocs.io/en/1.2.2/cygnus-ngsi/quick_start_guide/) but I can't get it to work correctly. After starting the service as the guide says I get following error:
...ANSWER
Answered 2018-May-01 at 07:43The page you used to install cygnus belongs to an older version of Cygnus. Please, visit the latest version here: http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/quick_start_guide/
The caveat here is that yum install cygnus
will install a quite old version of cygnus. You should install yum install cygnus-ngsi
instead which is a newer version.
However, I like better to follow the github page: https://github.com/telefonicaid/fiware-cygnus/tree/master/cygnus-ngsi and installing cygnus-ngsi and creating the configuration files /usr/cygnus/conf/agent_1.conf and /usr/cygnus/conf/cygnus_instance_1.conf as shown in github. Cygnus can then be started a service.
The notification.sh
script in http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/quick_start_guide/ is usefull and you can use it once cygnus is running.
QUESTION
I install Cygnus from RPM repository like this and now i dont know how continue.
I try continue whit this section and i got the following error:
...ANSWER
Answered 2017-Dec-20 at 11:49You need java, maven and Flume correctly installed before starting.
export APACHE_FLUME_HOME_BIN=/usr/local/flume
to your shell
I recommend following the install from source, which guide you through all the steps.
For docker start with the cygnus-common Dockerfile which uses centos6 as base.
QUESTION
According to this manual, I've try to install Cygnus on my Centos instance of FiwareLab but always I get the following error "Permission denied".
I have used the default user "centos" but I don't get any result. Anyone can help me? Thanks a lot!!
...ANSWER
Answered 2017-Nov-14 at 14:08The error you were facing was because the user has no permission to perform that operation on the specified directory.
The solution, in this case, is use sudo
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fiware-cygnus
cygnus-common: Install from sources Install with docker Install with rpm
cygnus-ngsi: Install from sources Install with docker Install with rpm
cygnus-twitter: Install from sources Install with docker
cygnus-ngsi-ld: Install from sources Install with docker
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page