kaa

Error on zookeeper

别来无恙 提交于 2020-01-17 08:04:47
问题 I installed zookeeper on Ubuntu 14 but when run the command it fails. the command is: cat /var/log/kaa/* | grep ERROR it shows: 2017-04-19 00:20:04,197 [main] ERROR o.k.k.s.n.s.i.KaNodeInitializationService - Failed to connect to Zookeeper within 5 minutes. Kaa Node Server will be stopped. 2017-04-19 00:45:39,668 [Kaa Node Server Shutdown Thread] ERROR o.k.k.s.c.s.a.AdminInitializationService - Error stopping Kaa Admin web server! 2017-04-19 00:45:39,668 [Kaa Node Server Shutdown Thread]

how to get kaa deployed on openshift

北城余情 提交于 2020-01-06 07:00:52
问题 The Kaa platform as an IoT cloud platform is prebuilt to run on amazon aws or a virtualbox sandbox. Is it immediately deployable to openshift, especially the starter free plan? If not, what it takes to get it to work? I have looked at the python on openshift which uses the S2I to dockerize a software collections version of python, e.g. 2.7. I'm wondering how these projects or technologies would work together to make Kaa to run on multiple platforms, or to make more versions/flavors/variants

Looking for PostgreSQL or MySQL LogAppender

烂漫一生 提交于 2019-12-25 08:28:57
问题 Has anyone point me to a PostgreSQL log appender for kaa? Thanks a lot! James 回答1: We had a requirement similar to this. We wrote a custom JDBC log appender which was very customized for our needs and requirements. 回答2: You can find a guide to creating custom log appender in documentation. Also here is the code examples of log appenders available in Kaa by default. 回答3: I used Django and postgres on AWS and created a rest API within the django app. Was quite easy to set it up. You can

The Issues that are caused by Kaa cluster

自闭症网瘾萝莉.ら 提交于 2019-12-25 08:18:46
问题 I deployed 3 Kaa clusters follow the kaa Cluster setup guide document. The databases are Cassandra and MariaDB . When I run C Client(I make a code change that every client can login in three kaa servers in random) . a lot of questions are reported in the Server log file. I will upload the one Server logs in Kaa Cluster . I summed up a bit,there are 7 errors.The first error will appear when C Clients login in kaa server firstly.After I stop C Clients and run those secondly,the error didn't

The error that can't send and receive event in Kaa cluster

旧时模样 提交于 2019-12-24 07:56:51
问题 I deployed 3 Kaa clusters follow the kaa Cluster setup guide document. The databases are MongoDB and MariaDB. When I run C Client(I make a code change that every client can login in three kaa servers in random) firstly, it can login in kaa server and send or receive event. But after I stop the Client and start it secondly, it can not send or receive event. Then I try to do it again and again. But almost it is bad. I will upload the server log and the Client log . The error maybe caused by kaa

How should I implement Rest API in KAA

时光毁灭记忆、已成空白 提交于 2019-12-23 19:30:15
问题 I using Kaa sandbox for send notification. I have to run these codes on window terminals: curl -v -S -u devuser:devuser123 -F 'notification={"applicationId":"3","schemaId":"4","topicId":"1","type":"USER"}; type=application/json' -F file=@notification.json "http://192.168.10.49:8080/kaaAdmin/rest/api/sendNotification" | python -mjson.tool And content Json file is according to schemaId: {"message" : "Hello world!"} Hint: My command and json file is the same folder!. When I run curl command on

Strange behavior from kaa C sdk on RPI3

Deadly 提交于 2019-12-23 05:03:09
问题 I am trying to build a C application on a raspberry pi 3 which collects some sensors readings and log them into a mongodb log appender. I am facing a very strange behavior from the application Here is my application code which is called from the main function #include <stdio.h> #include <stdlib.h> #include <kaa/kaa.h> #include <kaa/platform/kaa_client.h> #include <kaa/kaa_error.h> #include "dht11.h" #include "kaa-log.h" #define KAA_LOG_GENERATION_FREQUENCY 1 // in seconds /* * Pin on Rasbery

Building Java based Kaa actor gateway

谁说胖子不能爱 提交于 2019-12-22 17:52:01
问题 I would like to build a kaa actor gateway using java SDK. The actuator should handle data from different endpoints (temperature sensor - humidity sensor - ...), and log their data to the kaa platform. How can be this done what sachems I should define from Admin console and what are the API I should use from the generated SDK? I can't find any example for this in the kaa sandbox sample projects 回答1: You can find more details about kaa actor gateway here. Also, there is a ticket with detailed

Compile error with ESP8266 SDK in KAA 0.10.0

三世轮回 提交于 2019-12-20 05:59:05
问题 I have built the ESP8266 SDK according to this document. But the compile report shows the error below. Attachemnt is the ld file. Would you please help me to resolve it? Thanks a lot! /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: esp8266_app section `.text' will not fit in region `iram1_0_seg' /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: region

Sending Kaa events using raw TCP

烂漫一生 提交于 2019-12-13 16:17:20
问题 I want to send events to Kaa platform using raw TCP and I don't want to use generated SDK for this, so I want to ask is there any way for doing this ? And where can I find the documentation for using Kaa TCP protocol manually without SDK. Thanks in advance 回答1: Short answer: no, you can't do this. There is a specification on KaaTCP protocol responsible for transport and Binary platform protocol (there is also Avro-based platform protocol) which responsible for serializing Kaa services. You