i try to connect to the schema registery on hopsworks.ai from an external producer on my local machine, but i can’t figure out the right url. My code is down below.
You can find an example here Use Python Kafka to interact with Hopsworks - Hopsworks, specifically under the Configuration File and Avro Producer sections. Also please note you will need to modify the accepted header in the schema registry client, as per the instructions under the Avro Producer section.
The url looks correct, excepts it’s missing the leading https://.
The error indicates something wrong with the certificate files, the client does not trust the API server. Did you generate them the same way as shown in the tutorial? Is your Hopsworks cluster using a signed certificate?
Are you instantiating the SchemaRegistry like this?
This will instruct the SchemaRegistry to now verify the https certificate. The stacktrace shows that the SchemaRegistry tires to verify the https connection and fails.
You can also hard-code it like that just to make sure
Do you mean about the signed certificate? That is an option when creating the hopsworks.ai cluster, under the Security Group option in the Create Cluster wizard.
It shouldn’t be required though if the SchemaRegistry is initialized with ssl.ca.location-false.
I did not specify a security group, while creating a hopsworks cluster and ssl.ca.location is set to false. I followed the tutorial step by step until this point including the creation the .pem-files.