Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Connect to kerberos authenticated schema registry using Python Library python-schema-registry-client

avatar
Explorer

Hello ,

We have one use case where we need to connect to HDF schema registry using Python Library .

We have installed python-schema-registry-client  library.

But Schema registry URL is kerberos authenticated URL so couldn't connect with

below code

from schema_registry.client import SchemaRegistryClient, schema

client = SchemaRegistryClient(url="http://127.0.0.1:8081")

provided here https://marcosschroh.github.io/python-schema-registry-client/

Getting Authentication error 401.

Is there any extra arguments or methods to get connect to Schema registry using python library?

 

Thanks and Regards

1 ACCEPTED SOLUTION

avatar
Master Guru

That Python is for the Confluent Schema Registry.

 

I was able to connect, but Confluent supports their own Avro schema format.

 

This was my example and it worked:

 

from schema_registry.client import SchemaRegistryClient, schema

 

client = SchemaRegistryClient(url="http://myclouderasr.com:7788")

 

print( client.get_schema('weatherny') )

 

This library doesn't seem to support logins or security.

View solution in original post

3 REPLIES 3

avatar
Master Guru

That Python is for the Confluent Schema Registry.

 

I was able to connect, but Confluent supports their own Avro schema format.

 

This was my example and it worked:

 

from schema_registry.client import SchemaRegistryClient, schema

 

client = SchemaRegistryClient(url="http://myclouderasr.com:7788")

 

print( client.get_schema('weatherny') )

 

This library doesn't seem to support logins or security.

avatar
Explorer

Thanks Spann for useful links and information about python-schema-registry-client library.

So now I can see  one of possible way to connect to kerberos Schema registry URL through python  is requests_kerberos library.

 

Thanks and Regards