- Newest
- Most votes
- Most comments
Based on the error message and your configuration, it appears that there are a few issues to address:
-
Auto-registration of schemas is not enabled: Despite setting
auto.register.schemas=truein your configuration, the error suggests that auto-registration is not enabled. This setting might not be recognized or applied correctly. -
The schema "logs" is not found: The error indicates that the schema with the name "logs" doesn't exist in the registry.
To resolve these issues, consider the following steps:
-
Ensure that you're using the correct property names for auto-registration. The AWS Glue Schema Registry typically uses the property
avro.auto.register.schemasorglue.schema.auto.register.schemasinstead of justauto.register.schemas. Try updating your configuration to use one of these properties. -
If auto-registration is not working, you may need to manually register your schema first. You can do this through the AWS Glue console, AWS CLI, or programmatically using the AWS SDK.
-
Double-check that your AWS credentials and permissions are correctly set up. Ensure that the IAM role or user associated with your application has the necessary permissions to interact with the AWS Glue Schema Registry.
-
Verify that the registry name "Notification-Logger-Registry" exists in your AWS Glue Schema Registry. If it doesn't, you'll need to create it first.
-
Make sure that the schema name "logs" matches exactly with what you're trying to use in your Kafka producer.
-
If you're using a custom SerDe library, ensure it's properly configured to work with the AWS Glue Schema Registry.
-
Check that your region setting (
ap-south-1) is correct and matches the region where your Schema Registry is located.
If the issue persists after making these changes, you may need to manually register your schema before using it. You can do this through the AWS Glue console or using the AWS Glue APIs. Once the schema is registered, your producer should be able to use it without encountering the "Schema not found" error.
Remember that auto-registration, when properly configured, should only need to happen once for a new schema. After the initial registration, the schema should be available for subsequent uses.
Sources
How the schema registry works - AWS Glue
RegisterSchemaVersion - AWS Glue
AWS Glue Schema registry - AWS Glue
answered 2 years ago
Relevant content
asked 3 years ago
