-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kafka connection in cloud2edge #492
Comments
@bs3245 When deploying the current cloud2edge chart version (0.4.2), there is already a Kafka connection being created for the There is already #468 concerning issues creating a new tenant and connection, and there is #432 about updating the cloud2edge tour with instructions how to add a Kafka connection. I'm closing this as a duplicate then, you can follow the PR #493 to see when the cloud2edge documentation gets updated. In general, if you have a question, you can ask it in the Gitter channel. |
Duplicate of #468 |
@bs3245 Connecting Hono to Ditto can be done via AMQP 1.0 or Kafka. I'm positive we will get the Kafka connection example in the cloud2edge chart fully working soon together with the new Ditto version (see #493). Concerning the AMQP connection support, I can say with respect to Hono that having started out with AMQP 1.0, we added Kafka support in Hono 2.0. Kafka has been the focus of development since then, mainly because of its wider adoption. |
Hi @calohmn, I'm trying to install the new c2e version, do I need add any helm repo since ditto has been moved to its own repository? |
@calohmn Yeah, I did update the repo and my helm version is 3.10, but the installation is getting failed
|
@bs3245 If you have used the |
No, I'm trying the nodeport install command which as worked fine in the previous version. And also I'm deploying it in microk8s. |
I just tested on minikube and the |
It didn't work for me in MicroK8s, so I tried it in Minikube using the LoadBalancer install command alongside running minikube tunnel, but unfortunately, that also didn't seem to resolve the issue. desc.txt I've noticed that some of the pods are failing, seemingly due to insufficient CPU resources. I started Minikube with the resource requirements specified in the installation guide. Could you share your Minikube configuration? |
I noticed a bug in the cloud2edge chart here. The chart is supposed to configure the Ditto chart with lower CPU/memory resources compared to the Ditto defaults. But the way this configuration is done has changed with the new Ditto chart version and the cloud2edge chart hasn't been adapted there. As a workaround, you can supply the corresponding chart parameters by referencing this file: The bug is tracked in #499. |
@calohmn While creating the kafka connection based on the tour guide, I'm getting this
While trying the fetch the ditto connection through connection api there is only one kafka connection. Can you tell me what is the configuration that is required here? Tried again with the connection api of ditto, it gives the same error. |
@bs3245 Sorry, there was an issue with the website, meaning there were certain parts of the JSON message in the curl request being omitted. |
@calohmn Thank you for solving this. It worked fine this time and the connection is created. I just have some doubt if you could clarify them it would be helpful,
|
@calohmn Can you review this as part of the tour, I tried sending the command of this, 'start watering' from ditto. How can I receive this message at device side? If Ditto shall wait for a response, responding with the response from the device at the HTTP level, simply increase the timeout to the amount of seconds to wait:
Receiving a command at the device
An example response for the device containing the command sent via the Ditto twin (see previous step for sending the command) is:
|
@bs3245 Thanks for the notification here. The "Receiving a command at the device" curl command seems wrong.
I've created #503 to fix this. (EDIT: updated the curl command here) |
I have installed cloud2edge package in mickrok8s and I am able to create tenants, devices and credentials.
Can you provide me the steps on how to enable kafka based Hono connection in ditto in cloud2edge?
Also can you suggest how to implement inbound and outbound kafka connection?
@calohmn could you please take this question
This is more of an question than issue, I don't know to how to add question tag
The text was updated successfully, but these errors were encountered: