fiware-cygnus

How to store data in MySql using cygnus?

余生长醉 提交于 2019-12-12 09:47:29
问题 I have read all the documentation about how cygnus works, I specifically tested this one successfully. I also finished reading this tutorial, but I am sure I haven't configured something correctly. in cygnus_instance_1.conf I created: CYGNUS_USER=root CONFIG_FOLDER=/usr/cygnus/conf CONFIG_FILE=/usr/cygnus/conf/agent_1.conf AGENT_NAME=cygnusagent LOGFILE_NAME=cygnus.log ADMIN_PORT=8081 and in agent_1.conf I created: #============================================= # To be put in APACHE_FLUME

fiware-cygnus mongodb storing collection name with /. How to use other separator?

眉间皱痕 提交于 2019-12-11 10:57:36
问题 When data is sent from orion borker.Cygnus creates the collection name with "/" is it possible to use any other separator. As for example, the entity name is room01 and entity type is room. Then the collection name becomes sth_/_room01_room. If it is possible how can I change the configuration? because I cannot use mongodump to creat backup of it. 回答1: The limitation regarding slash in collection names in mongodump is solved in MongoDB 4.0 so one possible solution is to use that version. With

Can't install cygnus-ngsi via Docker

限于喜欢 提交于 2019-12-11 08:54:28
问题 I am trying to install cygnus-ngsi, following this guide. While installing via Docker, I get the following error: INFO: Apache domain <http://apache.rediris.es/> INFO: URL MAVEN <http://apache.rediris.es/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz> INFO: URL FLUME <http://apache.rediris.es/flume/1.4.0/apache-flume-1.4.0-bin.tar.gz> INFO: Download and install Maven and Flume... curl: (7) couldn't connect to host It seems to be that the mirror http://apache.rediris.es is down. Is

'fiware-servicepath' header value does not match the number of notified context responses

无人久伴 提交于 2019-12-11 08:32:21
问题 Working on setting Cygnus as a sink to CKAN, and I get this error, what part of Cygnus setup is responsible for this( subscription, configuration ...) cygnus_1 | time=2018-10-01T12:40:04.517Z | lvl=DEBUG | corr=1ea858dc-c577- 11e8-b0fd-0242ac140003 | trans=5c553916-f5e6-4bbc-b98a-bcaba61a306c | srv=waste4think | subsrv=/room/test | comp=cygnus-ngsi | op=getEvents | msg=com.telefonica.iot.cygnus.handlers.NGSIRestHandler[320] : [NGSIRestHandler] Parsed NotifyContextRequest:{" subscriptionId":

Cygnus-NGSI won't save data in PostgreSQL

南楼画角 提交于 2019-12-11 07:58:35
问题 Im trying to save some data in a postgreSQL database using cygnus-ngsi, but nothing happens. Im running all services in a docker container using docker-compose. docker-compose.yml: ... cygnus: image: fiware/cygnus-ngsi:latest hostname: cygnus container_name: cygnus_fiware volumes: - ./config/cygnus/cygnus.conf:/opt/apache-flume/conf/agent.conf - ./config/cygnus/grouping_rules.conf:/opt/apache-flume/conf/grouping_rules.conf links: - orion - postgres expose: - "5050" ports: - "5050:5050"

adding Apache flume elastic search sink

巧了我就是萌 提交于 2019-12-11 06:19:52
问题 I want to use Apache flume Elastic search native sink in cygnus. How can I configure cygnus to use this native sink? Do I put the native jar file in Apache flume lib and configure the agent as the folowing: # Name the components on this agent a1.sources = r1 a1.sinks = k1 a1.channels = c1 # Describe/configure the source a1.sources.r1.type = netcat a1.sources.r1.bind = localhost a1.sources.r1.port = 44444 # Describe the sink a1.sinks.k1.type = logger # Use a channel which buffers events in

Cygnus java.lang.ClassNotFoundException: com.telefonica.iot.cygnus.interceptors.GroupingInterceptor$Builder

萝らか妹 提交于 2019-12-11 05:47:54
问题 Azure VM running Ubuntu Trusty. When trying to test Cygnus I get an exception java.lang.ClassNotFoundException: com.telefonica.iot.cygnus.interceptors.GroupingInterceptor$Builder Below is the full output from the command. $ APACHE_FLUME_HOME/bin/cygnus-flume-ng agent --conf APACHE_FLUME_HOME/conf/ -f APACHE_FLUME_HOME/conf/agent_test.conf -n cygnusagent -Dflume.root.logger=INFO.console + exec /usr/lib/jvm/java-7-openjdk-amd64//bin/java -Xmx20m -Dflume.root.logger=INFO.console -cp '/home

unable to start Fiware Cygnus as a service

冷暖自知 提交于 2019-12-11 05:43:02
问题 I installed fiware cygnus using RPM on my centOS 7 but I can't start it as service. I got the following error: [root@localhost cygnus]# sudo service cygnus start Starting cygnus (via systemctl): Job for cygnus.service failed. See 'systemctl status cygnus.service' and 'journalctl -xn' for details. [ÉCHOUÉ] [root@localhost cygnus]# systemctl status cygnus.service -l cygnus.service - SYSV: cygnus Loaded: loaded (/etc/rc.d/init.d/cygnus) Active: failed (Result: exit-code) since ven. 2015-07-31 19

Packaging cygnus-common results in an empty jar

本秂侑毒 提交于 2019-12-11 05:06:16
问题 I'm trying to install cygnus-common following this guide but the creation of the cygnus-common jar (incl. dependencies) always results in an empty jar. Apache-Flume installed without any issues. I've tried increasing the memory for the Maven JVM as per the guide but this hasn't helped. ~/fiware-cygnus/cygnus-common$ mvn clean compile exec:exec assembly:single [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building

Fiware Cygnus Error

僤鯓⒐⒋嵵緔 提交于 2019-12-11 04:37:02
问题 Looking for why my information was not persisting in Cosmos I have found this error in the log of cygnus repeated hundreds of times: 03 Sep 2015 02:20:18,491 ERROR [SinkRunner-PollingRunner-DefaultSinkProcessor] (com.telefonica.iot.cygnus.sinks.OrionSink.process:103) - Channel error (The Flume transaction could not be started. Details=begin() called when transaction is OPEN!) 03 Sep 2015 02:20:18,491 ERROR [SinkRunner-PollingRunner-DefaultSinkProcessor] (org.apache.flume.SinkRunner