# log4j:ERROR Could not read configuration file from URL

**URL:** <https://forum.confluent.io/t/log4j-error-could-not-read-configuration-file-from-url/7025>\
**Category:** Kafka Connect\
**Created:** [16 January 2023 14:47 UTC](https://forum.confluent.io/t/log4j-error-could-not-read-configuration-file-from-url/7025 "2023-01-16T14:47:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeverusP](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@SeverusP](https://forum.confluent.io/u/SeverusP)\
**Post date:** [16 January 2023 14:47 UTC](https://forum.confluent.io/t/log4j-error-could-not-read-configuration-file-from-url/7025/1 "2023-01-16T14:47:47Z")

</div>

Hello everyone,

I’m trying to run a kafka connect cluster in distributed mode on Windows.

When I try to lunch the command **C:\Users\dinardo\Desktop\Confluent\confluent-7.3.0\bin\windows\>connect-distributed.bat C:\Users\dinardo\Desktop\Confluent\confluent-7.3.0\etc\kafka\connect-distributed.properties**

gives me an error:  
**log4j:ERROR Could not read configuration file from URL [file:C:/Users/dinardo/Desktop/Confluent/confluent-7.3.0/config/connect-log4j.properties -Dlog4j.config.dir=C:/Users/dinardo/Desktop/Confluent/confluent-7.3.0/config].**

**java.io.FileNotFoundException: C:\Users\dinardo\Desktop\Confluent\confluent-7.3.0\config\connect-log4j.properties -Dlog4j.config.dir=C:\Users\dinardo\Desktop\Confluent\confluent-7.3.0\config**.

I thought the problem was that config directory doesn’t exist in the path so I’ve created it with connect-log4j.properties file inside but the issue is still the same.

Can anyone help me? thank you

---

<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:** [17 January 2023 06:48 UTC](https://forum.confluent.io/t/log4j-error-could-not-read-configuration-file-from-url/7025/2 "2023-01-17T06:48:37Z")

</div>

hey @SeverusP

Windows is basically not a supported for running Kafka environments.  
I would rather recommend to run Kafka inside Docker or with WSL.

What may help solving your issue:

- the file exists I assume
- try to run the cmd with “run as Admin”

again I would recommend to use Docker or Linux or WSL.

Best,  
Michael

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [22 January 2023 00:18 UTC](https://forum.confluent.io/t/log4j-error-could-not-read-configuration-file-from-url/7025/3 "2023-01-22T00:18:45Z")

</div>

The error is including the -Dlog4j.config.dir system property, which it shouldn’t, but as mentioned, the BATCH scripts haven’t been modified in a long time to fix any problems with them, whereas the unix scripts are used daily by anyone running these services.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [21 February 2023 00:19 UTC](https://forum.confluent.io/t/log4j-error-could-not-read-configuration-file-from-url/7025/4 "2023-02-21T00:19:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
