- Newest
- Most votes
- Most comments
The issue you're experiencing with Glue 5 and Kafka as a writer format is likely due to changes in the way Glue 5 handles certain data source integrations, particularly for Kafka.
In Glue 5, some application connections, including the Kafka writer format you're using, may not be directly compatible. This is why you're seeing the warning message about incompatibility with Glue 5.0.
To resolve this issue, you have a few options:
-
Revert to Glue 4.0: If your job works fine in Glue 4, you can configure your job to use Glue 4.0 instead of Glue 5. This should allow your existing code to run without modifications.
-
Use a Glue connection: Instead of specifying Kafka options directly in your code, create a Glue Kafka connection to manage your connection credentials. You can then reference this connection in your job configuration by providing the
connectionNameas an "Additional network connection" in your job settings. -
Update your Kafka integration: Glue 5 may require a different approach to integrating with Kafka. You might need to use a different library or method to write to Kafka that's compatible with Glue 5. This could involve using a different Spark Kafka integration or updating your dependencies.
-
Check for updated Glue 5 Kafka connectors: AWS may have released updated connectors or libraries specifically for use with Glue 5 and Kafka. Check the AWS documentation or reach out to AWS support for the most up-to-date information on Kafka integration with Glue 5.
Remember to ensure that all necessary IAM configurations are in place, especially if you're using Amazon MSK with IAM authentication. Also, make sure any required JAR files (like aws-msk-iam-auth) are properly included in your job configuration for Glue 5.
If none of these solutions work, you may need to consult with AWS support for a Glue 5-specific solution for Kafka integration, as there might be changes in the way Glue 5 handles external data sources that haven't been fully documented yet.
Sources
Kafka connections - AWS Glue
Streaming ETL jobs in AWS Glue - AWS Glue
answered 2 years ago
Anyone found a solution on this ? Writing to Kafka in glue5 seems impossible.
answered a year ago
Relevant content
asked 5 years ago
asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago

From what I see I cannot reference a kafka glue connections for writing to a kafka topic:
kafka does not seems to be a supported connection type.