# Adding connectors to lenses-box

**URL:** <https://ask.lenses.io/t/adding-connectors-to-lenses-box/249>\
**Category:** Apache Kafka Connectors\
**Created:** [June 5, 2024, 1:29pm UTC](https://ask.lenses.io/t/adding-connectors-to-lenses-box/249 "2024-06-05T13:29:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Finlayson](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/chris_finlayson/32/122_2.png) [@Chris\_Finlayson](https://ask.lenses.io/u/Chris_Finlayson)\
**Post date:** [June 5, 2024, 1:29pm UTC](https://ask.lenses.io/t/adding-connectors-to-lenses-box/249/1 "2024-06-05T13:29:06Z")

</div>

Hi! I have been experimenting with lenses box and was trying to add an Iceberg Sink Kafka connector

Im currently mapping this into the container as per below:  
- ./tabular-iceberg-kafka-connect-0.6.18:/opt/lensesio/connectors/third-party/tabular-iceberg-kafka-connect-0.6.18

and also providing metadata for the connector via environment variable :

```auto
 LENSES_CONNECTORS_INFO= |
        [
            {
            class.name = "io.tabular.iceberg.connect.IcebergSinkConnector"
            name = "Iceberg Sink Connector"
            instance = "file"
            sink = true
            extractor.class = "io.lenses.config.kafka.connect.SimpleTopicsExtractor"
            icon = "iceberg.png"
            description = "Used to sink data to Iceberg tables"
            author = "Tabular"
        }
        ]

```

Unfortunately I cant see any of the content of the connector being loaded as part of  
[http://127.0.0.1:3030/fdd/logs/connect-distributed.log](http://127.0.0.1:3030/fdd/logs/connect-distributed.log) or [http://127.0.0.1:3030/fdd/logs/lenses.log](http://127.0.0.1:3030/fdd/logs/lenses.log)

And it is not available as a sink in the connector page

Is there anywhere else I need to define the connector in order for it to be picked up by the classloader?

Any pointers would be gratefully received! Thanks

---

<div class="post-metadata">

**Author:** ![Marios](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/marios/32/8_2.png) [@Marios](https://ask.lenses.io/u/Marios)\
**Post date:** [June 7, 2024, 9:01am UTC](https://ask.lenses.io/t/adding-connectors-to-lenses-box/249/2 "2024-06-07T09:01:47Z")

</div>

Hello Chris! Try to add the connector under `/connectors`:

```auto
- ./tabular-iceberg-kafka-connect-0.6.18:/connectors/tabular-iceberg-kafka-connect-0.6.18

```

The path `/opt/lensesio/connectors` is a little special. In Box we allow you to explicitly enable or disable the default connectors, so we process each directory in there separately and we expect a naming convention of `kafka-connect-[connectorname]`.

So if you mounted your connector as `/opt/lensesio/connectors/third-party/kafka-connect-tabular-iceberg` it would work. But still the recommended place for bring-your-own connectors is under `/connectors`. 🙂

---

<div class="post-metadata">

**Author:** ![Chris\_Finlayson](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/chris_finlayson/32/122_2.png) [@Chris\_Finlayson](https://ask.lenses.io/u/Chris_Finlayson)\
**Post date:** [June 8, 2024, 8:12pm UTC](https://ask.lenses.io/t/adding-connectors-to-lenses-box/249/3 "2024-06-08T20:12:20Z")

</div>

Awesome that worked - thanks for the clear explanation!
