# MirrorMaker2 to Confluent Cloud: ConnectException: Failed to connect to and describe Kafka cluster

**URL:** <https://forum.confluent.io/t/mirrormaker2-to-confluent-cloud-connectexception-failed-to-connect-to-and-describe-kafka-cluster/4317>\
**Category:** Confluent Cloud\
**Created:** [28 February 2022 22:19 UTC](https://forum.confluent.io/t/mirrormaker2-to-confluent-cloud-connectexception-failed-to-connect-to-and-describe-kafka-cluster/4317 "2022-02-28T22:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cassiofreire](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/cassiofreire/32/1637_2.png) [@cassiofreire](https://forum.confluent.io/u/cassiofreire)\
**Post date:** [28 February 2022 22:19 UTC](https://forum.confluent.io/t/mirrormaker2-to-confluent-cloud-connectexception-failed-to-connect-to-and-describe-kafka-cluster/4317/1 "2022-02-28T22:19:23Z")

</div>

Team,  
We would like to replicate data from MirrorMake2 to Confluent Cloud.  
Our setting:

```auto
        bootstrapServers: "pkc-epwny.eastus.azure.confluent.cloud:9092"
        config:
         sasl.mechanism: PLAIN
         security.protocol: SASL_PLAINTEXT
         sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username=' ***' password='***';

```

Issue:

```auto
2022-02-28 19:00:13,568 ERROR Stopping due to error (org.apache.kafka.connect.cli.ConnectDistributed) [main]
org.apache.kafka.connect.errors.ConnectException: Failed to connect to and describe Kafka cluster. Check worker's broker connection and security properties.
at org.apache.kafka.connect.util.ConnectUtils.lookupKafkaClusterId(ConnectUtils.java:70)
at org.apache.kafka.connect.util.ConnectUtils.lookupKafkaClusterId(ConnectUtils.java:51)
at org.apache.kafka.connect.cli.ConnectDistributed.startConnect(ConnectDistributed.java:97)
at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:80)
Caused by: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Call(callName=listNodes, deadlineMs=1646074813542, tries=1, nextAllowedTryMs=1646074813643) timed out at 1646074813543 after 1 attempt(s )

```

The issue happens when connecting MM2 with Confluent (SaaS).  
We would appreciate any feedback

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [1 March 2022 12:33 UTC](https://forum.confluent.io/t/mirrormaker2-to-confluent-cloud-connectexception-failed-to-connect-to-and-describe-kafka-cluster/4317/2 "2022-03-01T12:33:42Z")

</div>

hi @cassiofreire

welcome to the forum 🙂

how did you configure you username and password?

there is also a nice tutorial out there by @vdesabou  
might be worth to follow this guide

> **[kafka-docker-playground/ccloud/mirrormaker2 at master ·...](https://github.com/vdesabou/kafka-docker-playground/tree/master/ccloud/mirrormaker2)**
>
> master/ccloud/mirrormaker2

best,  
michael

---

<div class="post-metadata">

**Author:** ![Planckskyy](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@Planckskyy](https://forum.confluent.io/u/Planckskyy)\
**Post date:** [11 October 2022 09:52 UTC](https://forum.confluent.io/t/mirrormaker2-to-confluent-cloud-connectexception-failed-to-connect-to-and-describe-kafka-cluster/4317/3 "2022-10-11T09:52:53Z")

</div>

> [@cassiofreire](#):
>
> MirrorMake2

It uses SASL\_SSL as the security.protocol. How can I configure the Confluent cloud to use SASL\_PLAINTEXT.
