eclipse / packages

IoT Packages project
https://eclipse.org/packages
Eclipse Public License 2.0
46 stars 66 forks source link

how to connect Eclipse hono(c2e package) and Apache kafka (both internally and externally) #515

Open kulta4 opened 1 year ago

kulta4 commented 1 year ago

Hi,

  1. I am trying to connect the eclipse hono which I have in c2e package with kafka (it should be inside the server/ c2e package or outside an another machine)
  2. I tried that eclipse hono to eclipse ditto connection using kafka (inside c2e package). In this case, I able to send and receive from/to both with the default tenant. But with our own tenant I able to get the data from ditto to hono. How will fix this both please give a guideline to achieve this. Thank you.

Best regards, Kulta

calohmn commented 1 year ago

I am trying to connect the eclipse hono which I have in c2e package with kafka (it should be inside the server/ c2e package or outside an another machine)

When you install the cloud2edge package with the default configuration, a Kafka instance gets deployed that is used by Hono. Also a corresponding Kafka connection gets created in Ditto for the demo tenant. If you want to use an external Kafka instance, the cloud2edge chart needs to be deployed with adapted Hono chart configuration properties. This is documented in the Integrating with an existing Kafka Cluster chapter in the Hono chart README. You may also find the discussion in #477 helpful here.

I tried that eclipse hono to eclipse ditto connection using kafka (inside c2e package). In this case, I able to send and receive from/to both with the default tenant. But with our own tenant I able to get the data from ditto to hono.

Did you follow the Working with devices section in the cloud2edge tour, creating a new connection in Ditto for your tenant?

kulta4 commented 1 year ago

Thanks for your kind response.

the cloud2edge was installed 3 months back. How to o deploy this yaml, I means it need to comewith specific configuration or just need to follow up the file placed on home directory and deploy using this command "helm install eclipse-hono eclipse-iot/hono -n hono --wait -f /path/to/customKafkaCluster.yaml" I want to connect this eclipse hono to influxdb from external server for this only i choosed the kafka connection but i didn't find any commands will help me to achieve this and aslo the connection between the eclipse hono to ditto(both get/post)

Screenshot 2023-10-23 125943

yes, of course I followed the cloud2edge packages command to make connection ,tenant, device everthing.

Best Regards, Kulta