- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
To transfer messages from Amazon MQ for ActiveMQ to Amazon MSK, you're on the right track using a Kafka Connect source connector. However, there are several issues in your current setup that need to be addressed:
-
Connection Configuration: Your ActiveMQ URL format appears to be correct (using SSL), but you need to ensure you're using the correct port number. For SSL connections to ActiveMQ, the port is typically 61617.
-
Authentication: Verify that the username and password for ActiveMQ are correct and that the user has permissions to access the specified queue.
-
Connector Class: The connector class you're using (
io.confluent.connect.activemq.ActiveMQSourceConnector) is from Confluent's commercial connector. If you're not using Confluent Platform with a valid license, this could be causing issues. You might need to:
- Provide a valid Confluent license, or
- Use an open-source alternative connector for ActiveMQ
-
SSL Configuration: When connecting to Amazon MQ with SSL, you may need additional SSL configuration parameters such as trust store settings.
-
Error Diagnosis: The error "Connector has 5 failed tasks out of 5" indicates all your connector tasks are failing. You should check the connector logs for more specific error messages that can help diagnose the exact issue.
Here's a revised connector configuration approach:
- Ensure you have the correct ActiveMQ broker endpoint and port
- Verify your MSK cluster bootstrap servers are correct
- Add SSL trust store configuration if needed
- Check if you need a valid Confluent license or switch to an open-source connector
- Verify network connectivity between your MSK Connect environment and the Amazon MQ broker (they should be in the same VPC or have proper network routing)
If you're using the Confluent connector, you'll need a valid license or consider using an alternative open-source ActiveMQ connector compatible with Kafka Connect.
Sources
Amazon MQ for ActiveMQ brokers - Amazon MQ
Using Amazon MQ for ActiveMQ - Amazon MQ
Connecting a Java application to your Amazon MQ broker - Amazon MQ
