Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

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